08208fbdfd02

py3: print -> print()
[view raw] [browse files]
author David Champion <dgc@bikeshed.us>
date Thu, 30 Jul 2020 14:43:13 -0700
parents 25b0cf6b43f5
children ae33e6b815ce
branches/tags (none)
files prompt.py

Changes

--- a/prompt.py	Sun Jul 19 11:36:59 2020 -0400
+++ b/prompt.py	Thu Jul 30 14:43:13 2020 -0700
@@ -8,7 +8,7 @@
 a shell prompt.
 '''
 
-from __future__ import with_statement
+from __future__ import with_statement, print_function
 
 import re
 import os
@@ -42,7 +42,7 @@
     out_groups = [groups[0]] + [groups[-1]]
 
     if any(out_groups) and not all(out_groups):
-        print 'Error parsing prompt string.  Mismatched braces?'
+        print ('Error parsing prompt string.  Mismatched braces?')
 
     out = out.replace('%', '%%')
     return ("%s" + out + "%s") % (out_groups[0][:-1] if out_groups[0] else '',