Make some windows-specific not cause NameErrors

This commit is contained in:
Alexander van Gessel 2012-08-10 17:41:06 +01:00
parent dfd67522d5
commit cf6f550248

View file

@ -217,7 +217,7 @@ class Addon(object):
try:
shutil.copystat(src, dst)
except OSError, why:
if WindowsError is not None and isinstance(why, WindowsError):
if shutil.WindowsError is not None and isinstance(why, shutil.WindowsError):
# Copying file access times may fail on Windows
pass
else: