summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pdb.py')
-rw-r--r--Lib/pdb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index d9aed24..2b36b1e 100644
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -429,8 +429,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
def user_line(self, frame):
"""This function is called when we stop or break at this line."""
if self._wait_for_mainpyfile:
- if (self.mainpyfile != self.canonic(frame.f_code.co_filename)
- or frame.f_lineno <= 0):
+ if (self.mainpyfile != self.canonic(frame.f_code.co_filename)):
return
self._wait_for_mainpyfile = False
self.bp_commands(frame)