Fix py35 compatibility tests

This commit is contained in:
Felipe Ruhland 2016-05-24 10:58:50 -03:00
parent 089483aece
commit 24a45cc6e6
No known key found for this signature in database
GPG Key ID: 6708F893426891AF
1 changed files with 3 additions and 3 deletions

View File

@ -79,13 +79,13 @@ class Command(ScrapyCommand):
copy2(srcname, dstname)
# catch the Error from the recursive copytree so that we can
# continue with other files
except EnvironmentError, err:
except EnvironmentError as err:
errors.extend(err.args[0])
except EnvironmentError, why:
except EnvironmentError as why:
errors.append((srcname, dstname, str(why)))
try:
copystat(src, dst)
except OSError, why:
except OSError as why:
if WindowsError is not None and isinstance(why, WindowsError):
# Copying file access times may fail on Windows
pass