diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2010-03-09 16:42:04 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2010-03-09 16:42:04 +0000 |
| commit | 2f90a4b9ceff920f793541376da21d313af083d9 (patch) | |
| tree | 4eda986a753ea80a16a3f416e22daae7946a6dbd /bin/equery | |
| parent | d3e4aad5a03efbd5089f96558d2ddd1e9bf158a8 (diff) | |
| download | gentoolkit-2f90a4b9ceff920f793541376da21d313af083d9.tar.gz | |
sync with genscripts rev 343. This adds the initial py3k support and the analyse utility to gentoolkit
svn path=/trunk/gentoolkit/; revision=751
Diffstat (limited to 'bin/equery')
| -rwxr-xr-x | bin/equery | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,6 +1,6 @@ #!/usr/bin/python # -# Copyright 2002-2010 Gentoo Technologies, Inc. +# Copyright 2002-2009 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 or later # # $Header$ @@ -10,6 +10,8 @@ information about packages, such as the files they own, their USE flags, the MD5 sum of each file owned by a given package, and many other things. """ +from __future__ import print_function + import sys # This block ensures that ^C interrupts are handled quietly. try: @@ -18,7 +20,7 @@ try: def exithandler(signum,frame): signal.signal(signal.SIGINT, signal.SIG_IGN) signal.signal(signal.SIGTERM, signal.SIG_IGN) - print + print() sys.exit(1) signal.signal(signal.SIGINT, exithandler) @@ -26,19 +28,19 @@ try: signal.signal(signal.SIGPIPE, signal.SIG_DFL) except KeyboardInterrupt: - print + print() sys.exit(1) from gentoolkit import equery, errors try: equery.main() -except errors.GentoolkitException, err: +except errors.GentoolkitException as err: if '--debug' in sys.argv: raise else: from gentoolkit import pprinter as pp sys.stderr.write(pp.error(str(err))) - print - print "Add '--debug' to global options for traceback." + print() + print("Add '--debug' to global options for traceback.") sys.exit(1) |
