Skip to content

Commit

Permalink
Use strip() instead of lstrip()
Browse files Browse the repository at this point in the history
  • Loading branch information
SnoopJ committed May 10, 2023
1 parent 3cf0d8a commit 3968695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def displayhook(self, obj):
self.message(repr(obj))

def default(self, line):
if line[:1] == '!': line = line[1:].lstrip()
if line[:1] == '!': line = line[1:].strip()
locals = self.curframe_locals
globals = self.curframe.f_globals
try:
Expand Down

0 comments on commit 3968695

Please sign in to comment.