Skip to content

Commit 5e93247

Browse files
committed
Address nit
1 parent 0bda5c2 commit 5e93247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2802,7 +2802,7 @@ def default(self, line):
28022802
# The remote needs to send us the whole block in one go.
28032803
try:
28042804
candidate = line.removeprefix("!") + "\n"
2805-
if not codeop.compile_command(candidate, "<stdin>", "single"):
2805+
if codeop.compile_command(candidate, "<stdin>", "single") is None:
28062806
raise SyntaxError("Incomplete command")
28072807
return super().default(candidate)
28082808
except:

0 commit comments

Comments
 (0)