Christian Heimes added the comment: Seems legit ... I don't have access to a Windows system right now so I can't test it.
WindowsError is globally available on Windows. You don't have to import it from shutil. Portable application should use OSError instead of WindowsError. WindowsError is a subclass of OSError with a Windows specific extra field. "try: ... except OSError: ..." catches WindowsError, too. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18525> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com