summaryrefslogtreecommitdiffstats
path: root/bin/archive-conf
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/archive-conf
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/archive-conf')
-rwxr-xr-xbin/archive-conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/archive-conf b/bin/archive-conf
index 680a99cb5..227bcece2 100755
--- a/bin/archive-conf
+++ b/bin/archive-conf
@@ -73,7 +73,7 @@ def archive_conf():
try:
contents = open(file, "r")
except IOError as e:
- print >> sys.stderr, 'archive-conf: Unable to open %s: %s' % (file, e)
+ print('archive-conf: Unable to open %s: %s' % (file, e), file=sys.stderr)
sys.exit(1)
lines = contents.readlines()
for line in lines:
@@ -106,4 +106,4 @@ def archive_conf():
if len(sys.argv) > 1:
archive_conf()
else:
- print >> sys.stderr, 'Usage: archive-conf /CONFIG/FILE [/CONFIG/FILE...]'
+ print('Usage: archive-conf /CONFIG/FILE [/CONFIG/FILE...]', file=sys.stderr)