Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
140
Merge Requests
140
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
1f11442d
Commit
1f11442d
authored
Apr 07, 2016
by
Jérome Perrin
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linecache: add support for ipython >= 3
parent
df06708b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
product/ERP5Type/patches/python.py
product/ERP5Type/patches/python.py
+8
-0
No files found.
product/ERP5Type/patches/python.py
View file @
1f11442d
...
...
@@ -107,6 +107,14 @@ def patch_linecache():
if
isinstance
(
m
,
str
)
and
'linecache'
in
m
:
frame
=
frame
.
f_back
m
=
frame
.
f_globals
[
'__name__'
]
if
m
==
'IPython.utils.ulinecache'
:
frame
=
frame
.
f_back
m
=
frame
.
f_globals
[
'__name__'
]
# IPython.utils.ulinecache.getline (used in `list` pdb command) call IPython.utils.ulinecache.getlines
# so we may have two frames in IPython.utils.ulinecache module
if
m
==
'IPython.utils.ulinecache'
:
frame
=
frame
.
f_back
m
=
frame
.
f_globals
[
'__name__'
]
if
m
==
'IPython.core.debugger'
:
co_name
=
frame
.
f_code
.
co_name
if
co_name
==
'format_stack_entry'
:
...
...
Jérome Perrin
@jerome
mentioned in commit
8155400e
·
Apr 18, 2016
mentioned in commit
8155400e
mentioned in commit 8155400e805c9a8e8618a5cd94839a353cc4a855
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment