Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 14, 2023
1 parent 73249f9 commit 31985fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xpra/gtk/configure/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def fail(messages: tuple[str, ...]) -> None:
self.show_all()
start_thread(self.query_packages, "query-packages", daemon=True)

def query_packages(self, connect = True):
def query_packages(self, connect=True):
if self.package_system == "dnf":
cmd = "rpm -qa"
else:
Expand Down
4 changes: 2 additions & 2 deletions xpra/util/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
from collections.abc import Callable


def make_thread(target : Callable, name : str, daemon : bool=False, args=()) -> Thread:
def make_thread(target : Callable, name : str, daemon : bool = False, args=()) -> Thread:
t = Thread(target=target, name=name, args=args)
t.daemon = daemon
return t


def start_thread(target : Callable, name : str, daemon : bool=False, args=()) -> Thread:
def start_thread(target : Callable, name : str, daemon : bool = False, args=()) -> Thread:
t = make_thread(target, name, daemon, args=args)
t.start()
return t
Expand Down

0 comments on commit 31985fb

Please sign in to comment.