summaryrefslogtreecommitdiff
path: root/trunk/src/equery
diff options
context:
space:
mode:
authorantarus <antarus@gentoo.org>2007-04-01 05:03:35 +0000
committerantarus <antarus@gentoo.org>2007-04-01 05:03:35 +0000
commitb268435e0b35ece1c8c1b3d91c8371bf2ee8980b (patch)
tree5b06d9c9e5d1b62f712d304bf615708f6080c5cb /trunk/src/equery
parent825c75c436b8e0c262dc2dce74d0ac45f18f8585 (diff)
downloadgentoolkit-b268435e0b35ece1c8c1b3d91c8371bf2ee8980b.tar.gz
remove outdated usage of 'types'
svn path=/; revision=380
Diffstat (limited to 'trunk/src/equery')
-rwxr-xr-xtrunk/src/equery/equery3
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]: