summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-18 16:47:40 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-18 16:47:40 (GMT)
commitc4448659941bdfab5ce123987d8411d37b15a342 (patch)
treee7b79d46fd16e3083c5248e5b154cd9b5a3558f7 /Lib
parent2deb73a961a97387811a2402f82aadb70d3f576a (diff)
downloadcpython-c4448659941bdfab5ce123987d8411d37b15a342.zip
cpython-c4448659941bdfab5ce123987d8411d37b15a342.tar.gz
cpython-c4448659941bdfab5ce123987d8411d37b15a342.tar.bz2
No longer need to use codehack -- use co.co_firstlineno instead.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/pdb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index ec6a2ab..99e6191 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -112,7 +112,6 @@ class Pdb(bdb.Bdb, cmd.Cmd):
filename = self.curframe.f_code.co_filename
except:
# Try function name as the argument
- import codehack
try:
func = arg
if hasattr(func, 'im_func'):
@@ -122,7 +121,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
print '*** The specified object',
print 'is not a function', arg
return
- lineno = codehack.getlineno(code)
+ lineno = code.co_firstlineno
filename = code.co_filename
# now set the break point