summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2010-02-16 12:53:02 -0500
committerCatherine Devlin <catherine.devlin@gmail.com>2010-02-16 12:53:02 -0500
commit4fbbe583c47ad85943d71508612c8cc94887bc0a (patch)
tree83b590f33823fd3157d06a791fec69b20552b00e
parentf678838dcc349e1bd50f2937ea285392639cc095 (diff)
downloadcmd2-git-4fbbe583c47ad85943d71508612c8cc94887bc0a.tar.gz
cleanup print to py3 syntax'
'
-rwxr-xr-xcmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 729d37e5..5ebd3f03 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -402,7 +402,7 @@ class Cmd(cmd.Cmd):
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 @@ def cast(current, new):
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):