changeset 51:aaf766a5b5f1

py3
author Jeff Hammel <k0scist@gmail.com>
date Sun, 02 Jun 2024 13:29:17 -0700
parents 4b2c3be35225
children 3dcc8644ed63
files silvermirror/hg.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/silvermirror/hg.py	Fri Aug 13 15:16:54 2021 -0700
+++ b/silvermirror/hg.py	Sun Jun 02 13:29:17 2024 -0700
@@ -77,8 +77,8 @@
     repos = repositories(options.host)
     if options.list:
         for repo in repos:
-            print repo
-        sys.exit(0)
+            print(repo)
+        return
 
     # clone/update repos to directory
     if not os.path.exists(options.directory):
@@ -89,4 +89,4 @@
         update(source, dest)
 
 if __name__ == '__main__':
-    main()
+    sys.exit(main() or 0)