Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-05-28 14:56:11 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-05-28 15:49:49 +0300
commitdc0e24693622b8b475fb4cc82866166c1bec50d8 (patch)
tree7eee1cf7732b0d653d8db1bd8b54b91b71eca122 /win
parent9a7f27ea9b7ceed516fc96732953a8c02bed47f3 (diff)
cq: Use union operator everywhere
Diffstat (limited to 'win')
-rw-r--r--win/misc/depcheck.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/misc/depcheck.py b/win/misc/depcheck.py
index 2f965d539..6bebe3349 100644
--- a/win/misc/depcheck.py
+++ b/win/misc/depcheck.py
@@ -9,7 +9,6 @@
# Deletes unneeded DLLs and checks DLL dependencies.
-from typing import Optional
import logging
import os
@@ -76,7 +75,7 @@ def get_dependencies(filename: str) -> list[str]:
return deps
-def find_lib(root: str, name: str) -> Optional[str]:
+def find_lib(root: str, name: str) -> str | None:
search_path = os.path.join(root, 'bin')
if os.path.exists(os.path.join(search_path, name)):
return os.path.join(search_path, name)