# HG changeset patch # User David Champion # Date 1596145393 25200 # Node ID 08208fbdfd02b4f0f05fbd6926ed66bacd404412 # Parent 25b0cf6b43f5caa10c2db1acd668119655bca3ee py3: print -> print() diff -r 25b0cf6b43f5 -r 08208fbdfd02 prompt.py --- 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 '',