diff options
| author | antarus <antarus@gentoo.org> | 2007-04-01 05:03:35 +0000 |
|---|---|---|
| committer | antarus <antarus@gentoo.org> | 2007-04-01 05:03:35 +0000 |
| commit | b268435e0b35ece1c8c1b3d91c8371bf2ee8980b (patch) | |
| tree | 5b06d9c9e5d1b62f712d304bf615708f6080c5cb /trunk/src/equery | |
| parent | 825c75c436b8e0c262dc2dce74d0ac45f18f8585 (diff) | |
| download | gentoolkit-b268435e0b35ece1c8c1b3d91c8371bf2ee8980b.tar.gz | |
remove outdated usage of 'types'
svn path=/; revision=380
Diffstat (limited to 'trunk/src/equery')
| -rwxr-xr-x | trunk/src/equery/equery | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index 8fec9fe..72bef59 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -17,7 +17,6 @@ import os import re import sys import time -import types # portage (output module) and gentoolkit need special path modifications sys.path.insert(0, "/usr/lib/portage/pym") @@ -1770,7 +1769,7 @@ if __name__ == "__main__": print_error(str(e)) sys.exit(2) except ValueError, e: - if e and type(e[0]) == types.ListType: + if isinstance(e[0], list): print_error("Ambiguous package name " + pp.emph("\"" + local_opts[0] + "\"")) print_error("Please use one of the following long names:") for p in e[0]: |
