diff options
Diffstat (limited to 'contrib/python/ipython/py2')
| -rw-r--r-- | contrib/python/ipython/py2/IPython/core/debugger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/python/ipython/py2/IPython/core/debugger.py b/contrib/python/ipython/py2/IPython/core/debugger.py index f08cfb1a789..6a41b8b404b 100644 --- a/contrib/python/ipython/py2/IPython/core/debugger.py +++ b/contrib/python/ipython/py2/IPython/core/debugger.py @@ -408,7 +408,7 @@ class Pdb(OldPdb): ret.append(u'%s(%s)%s\n' % (link,lineno,call)) start = lineno - 1 - context//2 - lines = ulinecache.getlines(filename) + lines = ulinecache.getlines(filename, self.curframe.f_globals) start = min(start, len(lines) - context) start = max(start, 0) lines = lines[start : start + context] |
