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/etcat | |
parent | remove string module (diff) | |
download | gentoolkit-b268435e0b35ece1c8c1b3d91c8371bf2ee8980b.tar.gz gentoolkit-b268435e0b35ece1c8c1b3d91c8371bf2ee8980b.tar.bz2 gentoolkit-b268435e0b35ece1c8c1b3d91c8371bf2ee8980b.zip |
remove outdated usage of 'types'
svn path=/; revision=380
Diffstat (limited to 'trunk/src/etcat')
-rwxr-xr-x | trunk/src/etcat/etcat | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trunk/src/etcat/etcat b/trunk/src/etcat/etcat index 3b4aa8e..3ffa35d 100755 --- a/trunk/src/etcat/etcat +++ b/trunk/src/etcat/etcat @@ -84,7 +84,6 @@ import os import sys import re import pprint -import types import getopt import glob @@ -664,7 +663,7 @@ def main(): print red("!!!"), e sys.exit(2) except ValueError, e: - if type(e[0]) == types.ListType: + if isinstance(e[0],list): print red("!!!"), "Ambiguous package name \"%s\"" % query print red("!!!"), "Please use one of the following long names:" for p in e[0]: |