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 jayvdb
Recipients jayvdb
Date 2015-10-29.01:55:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446083745.57.0.702787363915.issue25502@psf.upfronthosting.co.za>
In-reply-to
Content
The following four modules re-import another module unnecessarily as it is already imported in the global scope.

Lib/getpass.py : msvcrt
Lib/pickletools.py : sys
Lib/smtplib.py : sys
PC/testpy.py : os

In each case, the import being removed in the attached patch existed in the source code before the import which now occurs first.  i.e. an import was added and the same import elsewhere in the module was not removed.
History
Date User Action Args
2015-10-29 01:55:45jayvdbsetrecipients: + jayvdb
2015-10-29 01:55:45jayvdbsetmessageid: <1446083745.57.0.702787363915.issue25502@psf.upfronthosting.co.za>
2015-10-29 01:55:45jayvdblinkissue25502 messages
2015-10-29 01:55:44jayvdbcreate