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 tim.golden
Recipients christian.heimes, ronaldoussoren, saurabhgupta2u, tim.golden
Date 2013-07-22.08:24:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374481461.11.0.532680089113.issue18525@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-07-22 08:24:21tim.goldensetrecipients: + tim.golden, ronaldoussoren, christian.heimes, saurabhgupta2u
2013-07-22 08:24:21tim.goldensetmessageid: <1374481461.11.0.532680089113.issue18525@psf.upfronthosting.co.za>
2013-07-22 08:24:21tim.goldenlinkissue18525 messages
2013-07-22 08:24:20tim.goldencreate