From c10077392e5a9c538345d816f158a384b81e9865 Mon Sep 17 00:00:00 2001 From: furtest Date: Sun, 4 Jan 2026 19:18:18 +0100 Subject: [PATCH] Change TODOs format. Use TODO: instead of TODO --- src/unisync/main.py | 4 ++-- src/unisync/runners.py | 2 +- src/unisync/synchroniser.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unisync/main.py b/src/unisync/main.py index f77462d..8374260 100644 --- a/src/unisync/main.py +++ b/src/unisync/main.py @@ -21,11 +21,11 @@ def main(): elif os.path.isfile(config_path): config = load_config(config_path) else: - # TODO replace the next line with something to do if no config file is found + # TODO: replace the next line with something to do if no config file is found config = load_config(config_path) pass - # TODO make the command line arguments work and override the config options + # TODO: make the command line arguments work and override the config options synchroniser = Synchroniser( config.roots.remote, diff --git a/src/unisync/runners.py b/src/unisync/runners.py index 5798941..95bf042 100644 --- a/src/unisync/runners.py +++ b/src/unisync/runners.py @@ -14,7 +14,7 @@ def unisync_sync(synchroniser:Synchroniser, paths_manager:PathsManager): synchroniser.sync_files(paths_manager.get_paths_to_sync()) synchroniser.sync_links(paths_manager.get_paths_to_sync()) - # TODO check the config options and do or don't do the following + # TODO: check the config options and do or don't do the following synchroniser.update_links() #synchroniser.mount_remote_dir() diff --git a/src/unisync/synchroniser.py b/src/unisync/synchroniser.py index 8a39e44..8a9eae0 100644 --- a/src/unisync/synchroniser.py +++ b/src/unisync/synchroniser.py @@ -75,7 +75,6 @@ class Synchroniser: On slow connections one might want to increase this. Returns: An error code (0 success, 1 TimeoutExpired, 2 KeyboardInterrupt). - TODO change that to raising the exception. """ self.control_path = os.path.expanduser(control_path) command = [ @@ -87,6 +86,7 @@ class Synchroniser: "-p", str(self.remote_port) ] master_ssh = subprocess.Popen(command) + # TODO: Raise an exception instead of changing the return value try: ret_code = master_ssh.wait(timeout=connection_timeout) except subprocess.TimeoutExpired: