mirror of https://github.com/scrapy/scrapy.git
Fix py35 compatibility tests
This commit is contained in:
parent
089483aece
commit
24a45cc6e6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue