Skip to content

bpo-33311: Do not display parameters displayed in parentheses for module call#6677

Merged
serhiy-storchaka merged 3 commits into
python:masterfrom
sblondon:parentheses-removal-for-module-call
May 9, 2018
Merged

bpo-33311: Do not display parameters displayed in parentheses for module call#6677
serhiy-storchaka merged 3 commits into
python:masterfrom
sblondon:parentheses-removal-for-module-call

Conversation

@sblondon

@sblondon sblondon commented May 1, 2018

Copy link
Copy Markdown
Contributor

This PR removes the parentheses if the trace is in module directly.

The parentheses and parameters are kept otherwise.

https://bugs.python.org/issue33311

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How hard to write tests for this?

@@ -0,0 +1,2 @@
Text and html output generated by cgitb does not display parentheses if the
current call is done directly in the module

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed period. Please add "Patch by yourname."

@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label May 9, 2018
@serhiy-storchaka serhiy-storchaka merged commit 8cf4b34 into python:master May 9, 2018
@sblondon sblondon deleted the parentheses-removal-for-module-call branch May 10, 2018 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants