08208fbdfd02 — David Champion 3 years ago
py3: print -> print()
1 files changed, 2 insertions(+), 2 deletions(-)

M prompt.py
M prompt.py +2 -2
@@ 8,7 8,7 @@ Useful mostly for putting information ab
 a shell prompt.
 '''
 
-from __future__ import with_statement
+from __future__ import with_statement, print_function
 
 import re
 import os

          
@@ 42,7 42,7 @@ def _with_groups(groups, out):
     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 '',