diff options
author | Guido van Rossum <guido@python.org> | 2000-01-19 21:57:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-01-19 21:57:30 (GMT) |
commit | 331f19e8948b028113132645cb8a821bfe724410 (patch) | |
tree | dfac55b695ceb5fc8a53d0664396d38fccae6043 /Lib/bdb.py | |
parent | fca049d952c1e70be02fa0f0512f34d75ee242e2 (diff) | |
download | cpython-331f19e8948b028113132645cb8a821bfe724410.zip cpython-331f19e8948b028113132645cb8a821bfe724410.tar.gz cpython-331f19e8948b028113132645cb8a821bfe724410.tar.bz2 |
Change two occurrences of type(x) <> types.CodeType into
isinstance(x, types.CodeType).
Suggested by Finn Bock.
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r-- | Lib/bdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -339,7 +339,7 @@ class Bdb: locals = globals self.reset() sys.settrace(self.trace_dispatch) - if type(cmd) <> types.CodeType: + if not isinstance(cmd, types.CodeType): cmd = cmd+'\n' try: try: @@ -358,7 +358,7 @@ class Bdb: locals = globals self.reset() sys.settrace(self.trace_dispatch) - if type(expr) <> types.CodeType: + if not isinstance(expr, types.CodeType): expr = expr+'\n' try: try: |