summaryrefslogtreecommitdiffstats
path: root/bin/env-update
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 11:08:30 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 11:08:30 +0000
commit15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf (patch)
treedbb60d5bbf670f1872539fca80263f17352f5c26 /bin/env-update
parent7cb8fb941f09d1ac646be334745f90e16ebd46eb (diff)
downloadportage-15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf.tar.gz
portage-15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf.tar.bz2
portage-15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf.zip
Update syntax of calls to print() for compatibility with Python 3.
(2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290
Diffstat (limited to 'bin/env-update')
-rwxr-xr-xbin/env-update10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/env-update b/bin/env-update
index 3fa21c7fa..912602f7b 100755
--- a/bin/env-update
+++ b/bin/env-update
@@ -6,9 +6,9 @@
import sys, errno
def usage(status):
- print "Usage: env-update [--no-ldconfig]"
- print ""
- print "See the env-update(1) man page for more info"
+ print("Usage: env-update [--no-ldconfig]")
+ print("")
+ print("See the env-update(1) man page for more info")
sys.exit(status)
if "-h" in sys.argv or "--help" in sys.argv:
@@ -20,7 +20,7 @@ if "--no-ldconfig" in sys.argv:
sys.argv.pop(sys.argv.index("--no-ldconfig"))
if len(sys.argv) > 1:
- print "!!! Invalid command line options!\n"
+ print("!!! Invalid command line options!\n")
usage(1)
try:
@@ -33,7 +33,7 @@ try:
portage.env_update(makelinks)
except IOError as e:
if e.errno == errno.EACCES:
- print "env-update: Need superuser access"
+ print("env-update: Need superuser access")
sys.exit(1)
else:
raise