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/archive-conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/archive-conf') 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) -- cgit v1.2.3-1-g7c22