Simplify code in warnings modules by alex · Pull Request #1935 · python/cpython · GitHub
Skip to content

Simplify code in warnings modules - #1935

Merged
dstufft merged 1 commit into
masterfrom
alex-patch-2
Jun 4, 2017
Merged

dstufft merged 1 commit into
masterfrom
alex-patch-2

Conversation

@alex

@alex alex commented Jun 4, 2017

Copy link
Copy Markdown
Member

Metaprogramming a list of attributes was excessive, and made the code less readable and slower.

Metaprogramming a list of attributes was excessive, and made the code less readable and slower.
@mention-bot

Copy link
Copy Markdown

@alex alex added the trivial label Jun 4, 2017
Comment thread Lib/warnings.py

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.

Is this the only use of _WARNING_DETAILS? Does it make sense to just get rid of it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, it's not. There's a usage in Lib/test/support/__init__.py

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.

Okay.

@dstufft
dstufft merged commit 5de3a64 into master Jun 4, 2017
@dstufft
dstufft deleted the alex-patch-2 branch June 4, 2017 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants