Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8cf4b34b
Commit
8cf4b34b
authored
May 09, 2018
by
sblondon
Committed by
Serhiy Storchaka
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-33311: Do not display parameters displayed in parentheses for module call. (GH-6677)
parent
ddb6215a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Lib/cgitb.py
Lib/cgitb.py
+6
-4
Misc/NEWS.d/next/Library/2018-05-01-22-33-14.bpo-33311.8YPB-k.rst
...S.d/next/Library/2018-05-01-22-33-14.bpo-33311.8YPB-k.rst
+2
-0
No files found.
Lib/cgitb.py
View file @
8cf4b34b
...
...
@@ -124,8 +124,9 @@ function calls leading up to the error, in the order they occurred.</p>'''
args
,
varargs
,
varkw
,
locals
=
inspect
.
getargvalues
(
frame
)
call
=
''
if
func
!=
'?'
:
call
=
'in '
+
strong
(
pydoc
.
html
.
escape
(
func
))
+
\
inspect
.
formatargvalues
(
args
,
varargs
,
varkw
,
locals
,
call
=
'in '
+
strong
(
pydoc
.
html
.
escape
(
func
))
if
func
!=
"<module>"
:
call
+=
inspect
.
formatargvalues
(
args
,
varargs
,
varkw
,
locals
,
formatvalue
=
lambda
value
:
'='
+
pydoc
.
html
.
repr
(
value
))
highlight
=
{}
...
...
@@ -207,8 +208,9 @@ function calls leading up to the error, in the order they occurred.
args
,
varargs
,
varkw
,
locals
=
inspect
.
getargvalues
(
frame
)
call
=
''
if
func
!=
'?'
:
call
=
'in '
+
func
+
\
inspect
.
formatargvalues
(
args
,
varargs
,
varkw
,
locals
,
call
=
'in '
+
func
if
func
!=
"<module>"
:
call
+=
inspect
.
formatargvalues
(
args
,
varargs
,
varkw
,
locals
,
formatvalue
=
lambda
value
:
'='
+
pydoc
.
text
.
repr
(
value
))
highlight
=
{}
...
...
Misc/NEWS.d/next/Library/2018-05-01-22-33-14.bpo-33311.8YPB-k.rst
0 → 100644
View file @
8cf4b34b
Text and html output generated by cgitb does not display parentheses if the
current call is done directly in the module. Patch by Stéphane Blondon.
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