Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9acd82bf
Commit
9acd82bf
authored
Aug 12, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#3134: shutil referenced undefined WindowsError symbol
(backport from r65644)
parent
4bf8d1f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
Lib/shutil.py
Lib/shutil.py
+10
-4
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/shutil.py
View file @
9acd82bf
...
@@ -15,6 +15,11 @@ __all__ = ["copyfileobj","copyfile","copymode","copystat","copy","copy2",
...
@@ -15,6 +15,11 @@ __all__ = ["copyfileobj","copyfile","copymode","copystat","copy","copy2",
class
Error
(
EnvironmentError
):
class
Error
(
EnvironmentError
):
pass
pass
try
:
WindowsError
except
NameError
:
WindowsError
=
None
def
copyfileobj
(
fsrc
,
fdst
,
length
=
16
*
1024
):
def
copyfileobj
(
fsrc
,
fdst
,
length
=
16
*
1024
):
"""copy data from file-like object fsrc to file-like object fdst"""
"""copy data from file-like object fsrc to file-like object fdst"""
while
1
:
while
1
:
...
@@ -129,10 +134,11 @@ def copytree(src, dst, symlinks=False):
...
@@ -129,10 +134,11 @@ def copytree(src, dst, symlinks=False):
errors
.
extend
(
err
.
args
[
0
])
errors
.
extend
(
err
.
args
[
0
])
try
:
try
:
copystat
(
src
,
dst
)
copystat
(
src
,
dst
)
except
WindowsError
:
# can't copy file access times on Windows
pass
except
OSError
,
why
:
except
OSError
,
why
:
if
WindowsError
is
not
None
and
isinstance
(
why
,
WindowsError
):
# Copying file access times may fail on Windows
pass
else
:
errors
.
extend
((
src
,
dst
,
str
(
why
)))
errors
.
extend
((
src
,
dst
,
str
(
why
)))
if
errors
:
if
errors
:
raise
Error
,
errors
raise
Error
,
errors
...
...
Misc/NEWS
View file @
9acd82bf
...
@@ -77,6 +77,8 @@ Core and builtins
...
@@ -77,6 +77,8 @@ Core and builtins
Library
Library
-------
-------
- Issue #3134: shutil referenced undefined WindowsError symbol.
- Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
- Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
menu entries were not deleted.
menu entries were not deleted.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment