Skip to content

Commit 34bedd5

Browse files
committed
cosmetic: reformat
1 parent 4829278 commit 34bedd5

File tree

220 files changed

+7286
-6792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+7286
-6792
lines changed

xpra/client/auth/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of Xpra.
2-
# Copyright (C) 2019-2023 Antoine Martin <antoine@xpra.org>
2+
# Copyright (C) 2019-2024 Antoine Martin <antoine@xpra.org>
33
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
44
# later version. See the file COPYING for details.
55

xpra/client/auth/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of Xpra.
2-
# Copyright (C) 2019-2023 Antoine Martin <antoine@xpra.org>
2+
# Copyright (C) 2019-2024 Antoine Martin <antoine@xpra.org>
33
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
44
# later version. See the file COPYING for details.
55

@@ -26,7 +26,7 @@ def __repr__(self):
2626
def get_digest(self) -> str:
2727
return ""
2828

29-
def handle(self, challenge, digest:str, prompt:str) -> bytes: # pylint: disable=unused-argument
29+
def handle(self, challenge, digest: str, prompt: str) -> bytes: # pylint: disable=unused-argument
3030
log("handle(..) password_file=%s", self.password_file)
3131
if not self.password_file:
3232
return b""

xpra/client/auth/gss.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of Xpra.
2-
# Copyright (C) 2019-2023 Antoine Martin <antoine@xpra.org>
2+
# Copyright (C) 2019-2024 Antoine Martin <antoine@xpra.org>
33
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
44
# later version. See the file COPYING for details.
55

@@ -25,7 +25,7 @@ def __repr__(self):
2525
def get_digest() -> str:
2626
return "gss"
2727

28-
def handle(self, challenge:str, digest, prompt:str): # pylint: disable=unused-argument
28+
def handle(self, challenge: str, digest, prompt: str): # pylint: disable=unused-argument
2929
if not digest.startswith("gss:"):
3030
# not a gss challenge
3131
log("%s is not a gss challenge", digest)
@@ -37,7 +37,7 @@ def handle(self, challenge:str, digest, prompt:str): # pylint: disable=unused-a
3737
if OSX:
3838
# this is a workaround for `py2app`,
3939
# to ensure it includes all the modules we need:
40-
from gssapi.raw import cython_converters, cython_types, oids # @UnresolvedImport
40+
from gssapi.raw import cython_converters, cython_types, oids # @UnresolvedImport
4141
assert cython_converters and cython_types and oids
4242
except ImportError as e:
4343
log.warn("Warning: cannot use gss authentication handler")

xpra/client/auth/kerberos.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of Xpra.
2-
# Copyright (C) 2019-2023 Antoine Martin <antoine@xpra.org>
2+
# Copyright (C) 2019-2024 Antoine Martin <antoine@xpra.org>
33
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
44
# later version. See the file COPYING for details.
55

@@ -39,7 +39,7 @@ def __repr__(self):
3939
def get_digest(self) -> str:
4040
return "kerberos"
4141

42-
def handle(self, challenge, digest:str, prompt:str): # pylint: disable=unused-argument
42+
def handle(self, challenge, digest: str, prompt: str): # pylint: disable=unused-argument
4343
if not digest.startswith("kerberos:"):
4444
log("%s is not a kerberos challenge", digest)
4545
# not a kerberos challenge
@@ -62,7 +62,7 @@ def handle(self, challenge, digest:str, prompt:str): # pylint: disable=unused-a
6262
log("kerberos service=%s", service)
6363
try:
6464
r, ctx = kerberos.authGSSClientInit(service) # @UndefinedVariable
65-
if r!=1:
65+
if r != 1:
6666
log("kerberos.authGSSClientInit failed and returned %s", r)
6767
return None
6868
except Exception as e:

xpra/client/auth/prompt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of Xpra.
2-
# Copyright (C) 2019-2023 Antoine Martin <antoine@xpra.org>
2+
# Copyright (C) 2019-2024 Antoine Martin <antoine@xpra.org>
33
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
44
# later version. See the file COPYING for details.
55

@@ -15,7 +15,7 @@ def __repr__(self):
1515
def get_digest(self) -> str:
1616
return ""
1717

18-
def handle(self, challenge, digest:str, prompt:str= "password"): # pylint: disable=unused-argument
18+
def handle(self, challenge, digest: str, prompt: str = "password"): # pylint: disable=unused-argument
1919
digest_type = digest.split(":", 1)[0]
2020
if not prompt and digest_type in ("gss", "kerberos"):
2121
prompt = f"{digest_type} token"

xpra/client/auth/u2f.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of Xpra.
2-
# Copyright (C) 2019-2023 Antoine Martin <antoine@xpra.org>
2+
# Copyright (C) 2019-2024 Antoine Martin <antoine@xpra.org>
33
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
44
# later version. See the file COPYING for details.
55

@@ -28,7 +28,8 @@ def __repr__(self):
2828
def get_digest() -> str:
2929
return "u2f"
3030

31-
def handle(self, challenge, digest:str, prompt:str) -> tuple[bytes,bytes] | None: # pylint: disable=unused-argument
31+
def handle(self, challenge, digest: str, prompt: str) ->(
32+
tuple[bytes, bytes] | None): # pylint: disable=unused-argument
3233
if not digest.startswith("u2f:"):
3334
log("%s is not a u2f challenge", digest)
3435
return None
@@ -61,7 +62,7 @@ def get_key_handle(self) -> bytes:
6162
log("process_challenge_u2f XPRA_U2F_KEY_HANDLE=%s", key_handle_str)
6263
if not key_handle_str:
6364
# try to load the key handle from the user conf dir(s):
64-
from xpra.platform.paths import get_user_conf_dirs # pylint: disable=import-outside-toplevel
65+
from xpra.platform.paths import get_user_conf_dirs # pylint: disable=import-outside-toplevel
6566
info = self.client._protocol.get_info(False)
6667
key_handle_filenames = []
6768
for hostinfo in ("-%s" % info.get("host", ""), ""):

xpra/client/auth/uri.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of Xpra.
2-
# Copyright (C) 2019-2022 Antoine Martin <antoine@xpra.org>
2+
# Copyright (C) 2019-2024 Antoine Martin <antoine@xpra.org>
33
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
44
# later version. See the file COPYING for details.
55

@@ -16,5 +16,5 @@ def __repr__(self):
1616
def get_digest() -> str:
1717
return ""
1818

19-
def handle(self, challenge, digest:str, prompt:str) -> str: # pylint: disable=unused-argument
19+
def handle(self, challenge, digest: str, prompt: str) -> str: # pylint: disable=unused-argument
2020
return self.client.password

0 commit comments

Comments
 (0)