--- 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 '',