summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-01-19 21:57:30 (GMT)
committerGuido van Rossum <guido@python.org>2000-01-19 21:57:30 (GMT)
commit331f19e8948b028113132645cb8a821bfe724410 (patch)
treedfac55b695ceb5fc8a53d0664396d38fccae6043 /Lib/bdb.py
parentfca049d952c1e70be02fa0f0512f34d75ee242e2 (diff)
downloadcpython-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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 89908fc..c8505a3 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -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: