]> granicus.if.org Git - python/commit
Simplify code in warnings modules (#1957)
authorAlex Gaynor <alex.gaynor@gmail.com>
Mon, 5 Jun 2017 13:13:50 +0000 (09:13 -0400)
committerGitHub <noreply@github.com>
Mon, 5 Jun 2017 13:13:50 +0000 (09:13 -0400)
commite14af32cc656249c2d785d190cc981869aa257f6
tree4bac8cc346b5008bb89343c05e44a49a81be622c
parented3edb4fbf6ec033e5e058f763c6266affa8eedc
Simplify code in warnings modules (#1957)

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

Backport of 5de3a64179bafcd440b32849b1129ed1fea47b85
Lib/warnings.py