Python 3-ize print () calls
authorAlexander Vasarab <alexander@wylark.com>
Mon, 8 Jun 2020 18:59:59 +0000 (11:59 -0700)
committerAlexander Vasarab <alexander@wylark.com>
Mon, 8 Jun 2020 18:59:59 +0000 (11:59 -0700)
Somehow this got lost in a merge conflict resolution when spinning
Munter.py off into its own repository from my guiding repository.

munter.py

index 47fbd6b8bcf9410a5d66fea7129f1ce6f6d6f6b3..5626897ebe391e23d53fc53b7d8b2fc238be8bf7 100755 (executable)
--- a/munter.py
+++ b/munter.py
@@ -78,22 +78,22 @@ def main():
     hours = int(time_calc['time'])
     minutes = int((time_calc['time'] - hours) * 60)
 
-    print "\n\t╒═══════════════════════════════╕"
-    print "\t╎▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╎╮"
-    print "\t╎▒{:^29}▒╎│".format('')
-    print "\t╎▒{pace_readable:^31}▒╎│".format(
+    print("\n\t╒═══════════════════════════════╕")
+    print("\t╎▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╎╮")
+    print("\t╎▒{:^29}▒╎│".format(''))
+    print("\t╎▒{pace_readable:^31}▒╎│".format(
             pace_readable="{units} {direction} @ {pace}".format(
                 units=round(time_calc['unit_count']),
                 direction=time_calc['direction'],
-                pace=time_calc['pace']))
-    print "\t╎▒{human_time:^29}▒╎│".format(
+                pace=time_calc['pace'])))
+    print("\t╎▒{human_time:^29}▒╎│".format(
             human_time="{hours} hours {minutes} minutes".format(
                 hours=hours,
-                minutes=minutes))
-    print "\t╎▒{:^29}▒╎│".format('')
-    print "\t╎▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╎│"
-    print "\t╘═══════════════════════════════╛│"
-    print "\t └───────────────────────────────┘\n"
+                minutes=minutes)))
+    print("\t╎▒{:^29}▒╎│".format(''))
+    print("\t╎▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╎│")
+    print("\t╘═══════════════════════════════╛│")
+    print("\t └───────────────────────────────┘\n")
 
 if __name__ == "__main__":
     main()