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/epkginfo | |
parent | glsa-check: hide non-vuln glsas in quiet mode (diff) | |
download | gentoolkit-2f90a4b9ceff920f793541376da21d313af083d9.tar.gz gentoolkit-2f90a4b9ceff920f793541376da21d313af083d9.tar.bz2 gentoolkit-2f90a4b9ceff920f793541376da21d313af083d9.zip |
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/epkginfo')
-rwxr-xr-x | bin/epkginfo | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/epkginfo b/bin/epkginfo index c1f457c..30f2ab5 100755 --- a/bin/epkginfo +++ b/bin/epkginfo @@ -1,12 +1,14 @@ #!/usr/bin/python # -# Copyright 2009-2010 Gentoo Technologies, Inc. +# Copyright 2009 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 or later # # $Header$ """Shortcut to equery meta""" +from __future__ import print_function + __authors__ = ( 'Douglas Anderson <douglasjanderson@gmail.com>: equery meta', 'Ned Ludd <solar@gentoo.org>: first full implimentation' @@ -21,8 +23,8 @@ from gentoolkit.equery import mod_usage from gentoolkit.equery.meta import main, print_help def print_epkginfo_help(): - print mod_usage(mod_name="epkginfo") - print + print(mod_usage(mod_name="epkginfo")) + print() print_help(with_usage=False) equery.initialize_configuration() @@ -32,7 +34,7 @@ if not args or set(('-h', '--help')).intersection(args): else: try: main(args) - except errors.GentoolkitException, err: + except errors.GentoolkitException as err: from gentoolkit import pprinter as pp pp.die(1, str(err)) |