From 15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 20 Sep 2009 11:08:30 +0000 Subject: Update syntax of calls to print() for compatibility with Python 3. (2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290 --- bin/env-update | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/env-update') 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 -- cgit v1.2.3-1-g7c22