# HG changeset patch # User catherine@Drou # Date 1266342782 18000 # Node ID 9e593c4807821e0a7e2a86c53a30f200fd888508 # Parent 43569db3ebdb7b9a3eb01c9da2e1bb2b8a243aae cleanup print to py3 syntax' ' diff -r 43569db3ebdb -r 9e593c480782 cmd2.py --- a/cmd2.py Tue Feb 16 12:36:14 2010 -0500 +++ b/cmd2.py Tue Feb 16 12:53:02 2010 -0500 @@ -402,7 +402,7 @@ def perror(self, errmsg, statement=None): if self.debug: traceback.print_exc() - print str(errmsg) + print (str(errmsg)) def pfeedback(self, msg): """For printing nonessential feedback. Can be silenced with `quiet`. Inclusion in redirected output is controlled by `feedback_to_output`.""" @@ -1388,7 +1388,7 @@ return typ(new) except: pass - print "Problem setting parameter (now %s) to %s; incorrect type?" % (current, new) + print ("Problem setting parameter (now %s) to %s; incorrect type?" % (current, new)) return current class Statekeeper(object):