mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Change two occurrences of type(x) <> types.CodeType into
isinstance(x, types.CodeType). Suggested by Finn Bock.
This commit is contained in:
parent
fca049d952
commit
331f19e894
1 changed files with 2 additions and 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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue