Author: Amaury Forgeot d'Arc <[email protected]>
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)
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to