From 331f19e8948b028113132645cb8a821bfe724410 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 19 Jan 2000 21:57:30 +0000 Subject: Change two occurrences of type(x) <> types.CodeType into isinstance(x, types.CodeType). Suggested by Finn Bock. --- Lib/bdb.py | 4 ++-- 1 file 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: -- cgit v0.12