Commits

Amaury Forgeot d'Arc committed e15fdde

upgrade our pwd.py to new print syntax

  • Participants
  • Parent commits 1795d20
  • Branches py3k

Comments (0)

Files changed (1)

File lib_pypy/pwd.py

     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)