From a8aab186bf3546b3d9b6c2d2cace0f83f7242b66 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 12 Jan 2021 15:45:14 +0000 Subject: [PATCH] config: Update some 'callers' of config.shutting_down for it being a property --- dashboard.py | 2 +- hotkey.py | 2 +- plug.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard.py b/dashboard.py index 415d0975..e0569070 100644 --- a/dashboard.py +++ b/dashboard.py @@ -145,7 +145,7 @@ class Dashboard(FileSystemEventHandler): # Can be called either in watchdog thread or, if polling, in main thread. def process(self, logfile=None): - if config.shutting_down(): + if config.shutting_down: return try: diff --git a/hotkey.py b/hotkey.py index af2d9533..f40f5f9e 100644 --- a/hotkey.py +++ b/hotkey.py @@ -128,7 +128,7 @@ if platform == 'darwin': self.acquire_state = HotkeyMgr.ACQUIRE_INACTIVE def _acquire_poll(self): - if config.shutting_down(): + if config.shutting_down: return # No way of signalling to Tkinter from within the monkey-patched event handler that doesn't diff --git a/plug.py b/plug.py index c51342c9..64410d7b 100644 --- a/plug.py +++ b/plug.py @@ -371,7 +371,7 @@ def show_error(err): :param err: .. versionadded:: 2.3.7 """ - if config.shutting_down(): + if config.shutting_down: logger.info(f'Called during shutdown: "{str(err)}"') return