Message193516
Really this should be a wont-fix: the fact that it's possible to import WindowsError from shutil (on Linux) is an accident of its internal implementation. It's certainly not documented as such.
Saurabh: WindowsError is a builtin on Windows. If you want to mimic shutil which uses it as a proxy for determining the platform, you can put a conditional import at the head of your own code:
try:
WindowsError
except NameError:
WindowsError = None
Don't bother trying to import it from shutil where it's an implementation artefact. |
|
Date |
User |
Action |
Args |
2013-07-22 08:24:21 | tim.golden | set | recipients:
+ tim.golden, ronaldoussoren, christian.heimes, saurabhgupta2u |
2013-07-22 08:24:21 | tim.golden | set | messageid: <1374481461.11.0.532680089113.issue18525@psf.upfronthosting.co.za> |
2013-07-22 08:24:21 | tim.golden | link | issue18525 messages |
2013-07-22 08:24:20 | tim.golden | create | |
|