changeset 341:9e593c480782

cleanup print to py3 syntax' '
author catherine@Drou
date Tue, 16 Feb 2010 12:53:02 -0500
parents 43569db3ebdb
children 12010fcc4e38
files cmd2.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):