diff options
author | Raymond Hettinger <python@rcn.com> | 2005-02-07 14:16:21 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-02-07 14:16:21 (GMT) |
commit | f715366f23f47832a4b9914c54d5a63b19f17eba (patch) | |
tree | ee5f60f4631f6fdad98711dc86ad128724effb11 /Lib/unittest.py | |
parent | a164574937d6ed32060ad34ea04913ca10741394 (diff) | |
download | cpython-f715366f23f47832a4b9914c54d5a63b19f17eba.zip cpython-f715366f23f47832a4b9914c54d5a63b19f17eba.tar.gz cpython-f715366f23f47832a4b9914c54d5a63b19f17eba.tar.bz2 |
Reduce the usage of the types module.
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r-- | Lib/unittest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py index efb2b02..3f2d653 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -71,7 +71,7 @@ if sys.version_info[:2] < (2, 2): False, True = 0, 1 def isinstance(obj, clsinfo): import __builtin__ - if type(clsinfo) in (types.TupleType, types.ListType): + if type(clsinfo) in (tuple, list): for cls in clsinfo: if cls is type: cls = types.ClassType if __builtin__.isinstance(obj, cls): |