diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 11:08:30 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 11:08:30 +0000 |
commit | 15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf (patch) | |
tree | dbb60d5bbf670f1872539fca80263f17352f5c26 /bin/clean_locks | |
parent | 7cb8fb941f09d1ac646be334745f90e16ebd46eb (diff) | |
download | portage-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/clean_locks')
-rwxr-xr-x | bin/clean_locks | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/clean_locks b/bin/clean_locks index ec593a311..eaeedda33 100755 --- a/bin/clean_locks +++ b/bin/clean_locks @@ -15,15 +15,15 @@ from portage import os if not sys.argv[1:] or "--help" in sys.argv or "-h" in sys.argv: import portage - print - print "You must specify directories with hardlink-locks to clean." - print "You may optionally specify --force, which will remove all" - print "of the locks, even if we can't establish if they are in use." - print "Please attempt cleaning without force first." - print - print "%s %s/.locks" % (sys.argv[0], portage.settings["DISTDIR"]) - print "%s --force %s/.locks" % (sys.argv[0], portage.settings["DISTDIR"]) - print + print() + print("You must specify directories with hardlink-locks to clean.") + print("You may optionally specify --force, which will remove all") + print("of the locks, even if we can't establish if they are in use.") + print("Please attempt cleaning without force first.") + print() + print("%s %s/.locks" % (sys.argv[0], portage.settings["DISTDIR"])) + print("%s --force %s/.locks" % (sys.argv[0], portage.settings["DISTDIR"])) + print() sys.exit(1) force = False @@ -35,12 +35,12 @@ for x in sys.argv[1:]: continue try: for y in portage.locks.hardlock_cleanup(x, remove_all_locks=force): - print y - print + print(y) + print() except OSError as e: if e.errno in (errno.ENOENT, errno.ENOTDIR): - print "!!! %s is not a directory or does not exist" % x + print("!!! %s is not a directory or does not exist" % x) else: raise sys.exit(e.errno) |