This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brett.cannon, christian.heimes, pitrou
Date 2013-10-24.20:09:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382645350.53.0.967299758483.issue19379@psf.upfronthosting.co.za>
In-reply-to
Content
Importing warnings pulls linecache at the top-level, while it's only necessary when printing warnings. The reason why it wasn't done lazily is obsolete, since Python now has per-module import locks. Attached patch makes the linecache imports lazy.

This is desirable for issue #19375.
History
Date User Action Args
2013-10-24 20:09:10pitrousetrecipients: + pitrou, brett.cannon, christian.heimes
2013-10-24 20:09:10pitrousetmessageid: <1382645350.53.0.967299758483.issue19379@psf.upfronthosting.co.za>
2013-10-24 20:09:10pitroulinkissue19379 messages
2013-10-24 20:09:10pitroucreate