[pypy-commit] pypy py3k: upgrade our pwd.py to new print syntax
amauryfa
noreply at buildbot.pypy.org
Thu Oct 13 23:13:01 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r48037:e15fddeec745
Date: 2011-10-13 22:33 +0200
http://bitbucket.org/pypy/pypy/changeset/e15fddeec745/
Log: upgrade our pwd.py to new print syntax
diff --git a/lib_pypy/pwd.py b/lib_pypy/pwd.py
--- a/lib_pypy/pwd.py
+++ b/lib_pypy/pwd.py
@@ -167,10 +167,10 @@
from os import getuid
uid = getuid()
pw = getpwuid(uid)
- print "uid %s: %s" % (pw.pw_uid, pw)
+ print("uid %s: %s" % (pw.pw_uid, pw))
name = pw.pw_name
- print "name %r: %s" % (name, getpwnam(name))
- print "All:"
+ print("name %r: %s" % (name, getpwnam(name)))
+ print("All:")
for pw in getpwall():
- print pw
+ print(pw)
More information about the pypy-commit
mailing list