mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Issue #16706: get rid of os.error
This commit is contained in:
parent
a191959849
commit
ad28c7f9da
33 changed files with 4089 additions and 4123 deletions
|
@ -124,7 +124,7 @@ def copy_tree(src, dst, preserve_mode=1, preserve_times=1,
|
|||
"cannot copy tree '%s': not a directory" % src)
|
||||
try:
|
||||
names = os.listdir(src)
|
||||
except os.error as e:
|
||||
except OSError as e:
|
||||
(errno, errstr) = e
|
||||
if dry_run:
|
||||
names = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue