aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py2/patches/03-fix-context-lines.patch
blob: 4627040e0074b55b2dab7ecfb09abb8233a22ff9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- contrib/python/ipython/py2/IPython/core/debugger.py	(revision 12930657)
+++ contrib/python/ipython/py2/IPython/core/debugger.py	(working copy)
@@ -408,7 +408,7 @@
         ret.append(u'%s(%s)%s\n' % (link,lineno,call))
 
         start = lineno - 1 - context//2
-        lines = ulinecache.getlines(filename)
+        lines = ulinecache.getlines(filename, frame.f_globals)
         start = min(start, len(lines) - context)
         start = max(start, 0)
         lines = lines[start : start + context]