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 serhiy.storchaka
Recipients berker.peksag, bethard, christian.heimes, paul.j3, pitrou, rhettinger, serhiy.storchaka, terry.reedy, vstinner, wolma, yan12125
Date 2017-09-24.08:14:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506240866.25.0.846473516036.issue30152@psf.upfronthosting.co.za>
In-reply-to
Content
Got rid of importing errno as Victor suggested. In gettext its import is deferred. It is only used in one exceptional case. In os errno no longer used.

Initially errno was imported in os inside a function. The import was moved at module level for fixing issue1755179. But now we can get rid of it totally by catching specialized OSError subclasses instead of testing the OSError's errno attribute.

There are other cleaning up changes in the os._execvpe() function. os.path.split() is replaced with os.path.dirname() since only the dirname is used. Saving tracebacks no longer needed because a traceback is a part of an exception in Python 3.
History
Date User Action Args
2017-09-24 08:14:26serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, terry.reedy, pitrou, bethard, vstinner, christian.heimes, berker.peksag, paul.j3, wolma, yan12125
2017-09-24 08:14:26serhiy.storchakasetmessageid: <1506240866.25.0.846473516036.issue30152@psf.upfronthosting.co.za>
2017-09-24 08:14:26serhiy.storchakalinkissue30152 messages
2017-09-24 08:14:26serhiy.storchakacreate