Message302835
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. |
|
Date |
User |
Action |
Args |
2017-09-24 08:14:26 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, terry.reedy, pitrou, bethard, vstinner, christian.heimes, berker.peksag, paul.j3, wolma, yan12125 |
2017-09-24 08:14:26 | serhiy.storchaka | set | messageid: <1506240866.25.0.846473516036.issue30152@psf.upfronthosting.co.za> |
2017-09-24 08:14:26 | serhiy.storchaka | link | issue30152 messages |
2017-09-24 08:14:26 | serhiy.storchaka | create | |
|