From 1800f8f0b18cb8e13a7cc032d4eac61f7f67cbb1 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Wed, 27 Mar 2024 22:17:21 -0400 Subject: [PATCH] [2186] Remove Some Comments --- config/__init__.py | 1 - dashboard.py | 4 ++-- monitor.py | 2 +- prefs.py | 2 +- theme.py | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/config/__init__.py b/config/__init__.py index c6c404b9..99e8fdc6 100644 --- a/config/__init__.py +++ b/config/__init__.py @@ -7,7 +7,6 @@ See LICENSE file. Windows uses the Registry to store values in a flat manner. Linux uses a file, but for commonality it's still a flat data structure. -macOS uses a 'defaults' object. """ from __future__ import annotations diff --git a/dashboard.py b/dashboard.py index 3948c92b..4776319c 100644 --- a/dashboard.py +++ b/dashboard.py @@ -26,7 +26,7 @@ if sys.platform == 'win32': else: # Linux's inotify doesn't work over CIFS or NFS, so poll class FileSystemEventHandler: # type: ignore - """Dummy class to represent a file system event handler on platforms other than macOS and Windows.""" + """Dummy class to represent a file system event handler on platforms other than Windows.""" class Dashboard(FileSystemEventHandler): @@ -160,7 +160,7 @@ class Dashboard(FileSystemEventHandler): def on_modified(self, event) -> None: """ - Watchdog callback - DirModifiedEvent on macOS, FileModifiedEvent on Windows. + Watchdog callback - FileModifiedEvent on Windows. :param event: Watchdog event. """ diff --git a/monitor.py b/monitor.py index d549e533..5acbcbc4 100644 --- a/monitor.py +++ b/monitor.py @@ -439,7 +439,7 @@ class EDLogs(FileSystemEventHandler): new_journal_file = None if logfile: - loghandle.seek(0, SEEK_END) # required to make macOS notice log change over SMB + loghandle.seek(0, SEEK_END) # required to make macOS notice log change over SMB. # TODO: Do we need this? loghandle.seek(log_pos, SEEK_SET) # reset EOF flag # TODO: log_pos reported as possibly unbound for line in loghandle: # Paranoia check to see if we're shutting down diff --git a/prefs.py b/prefs.py index 307e3c7a..5b045b1a 100644 --- a/prefs.py +++ b/prefs.py @@ -285,7 +285,7 @@ class PreferencesDialog(tk.Toplevel): # wait for window to appear on screen before calling grab_set self.parent.update_idletasks() - self.parent.wm_attributes('-topmost', 0) # needed for dialog to appear ontop of parent on OSX & Linux + self.parent.wm_attributes('-topmost', 0) # needed for dialog to appear ontop of parent on Linux self.wait_visibility() self.grab_set() diff --git a/theme.py b/theme.py index b128bc91..bbe62ef5 100644 --- a/theme.py +++ b/theme.py @@ -150,7 +150,7 @@ class _Theme: # the widget has explicit fg or bg attributes. assert isinstance(widget, (tk.BitmapImage, tk.Widget)), widget if not self.defaults: - # Can't initialise this til window is created # Windows, MacOS + # Can't initialise this til window is created # Windows self.defaults = { 'fg': tk.Label()['foreground'], # SystemButtonText, systemButtonText 'bg': tk.Label()['background'], # SystemButtonFace, White