summaryrefslogtreecommitdiff
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-15 01:38:23 +0000
committerGuido van Rossum <guido@python.org>1998-10-15 01:38:23 +0000
commit8317d37bfcce12222dcaeaec7a8790c9d6acd7a9 (patch)
tree4d547d580ef1130d1ff94cb22da43ac58940c9ba /Lib/pdb.py
parent2f833b0b26c01330204ea659ad72c8085f77328f (diff)
downloadcpython-8317d37bfcce12222dcaeaec7a8790c9d6acd7a9.tar.gz
When run as a script, don't pass a fake __main__ dictionary; use the
real one.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index de769bb87a..fae6b2c604 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -893,4 +893,4 @@ if __name__=='__main__':
# Insert script directory in front of module search path
sys.path.insert(0, os.path.dirname(filename))
- run('execfile(' + `filename` + ')', {'__name__': '__main__'})
+ run('execfile(' + `filename` + ')')