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
f1c28b75
Commit
f1c28b75
authored
Apr 19, 2010
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
few pep8 fixes
parent
7c587bf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Lib/shutil.py
Lib/shutil.py
+4
-3
No files found.
Lib/shutil.py
View file @
f1c28b75
...
...
@@ -53,7 +53,7 @@ def copyfileobj(fsrc, fdst, length=16*1024):
def
_samefile
(
src
,
dst
):
# Macintosh, Unix.
if
hasattr
(
os
.
path
,
'samefile'
):
if
hasattr
(
os
.
path
,
'samefile'
):
try
:
return
os
.
path
.
samefile
(
src
,
dst
)
except
OSError
:
...
...
@@ -66,7 +66,7 @@ def _samefile(src, dst):
def
copyfile
(
src
,
dst
):
"""Copy data from src to dst"""
if
_samefile
(
src
,
dst
):
raise
Error
,
"`%s` and `%s` are the same file"
%
(
src
,
dst
)
raise
Error
(
"`%s` and `%s` are the same file"
%
(
src
,
dst
)
)
fsrc
=
None
fdst
=
None
...
...
@@ -109,7 +109,8 @@ def copystat(src, dst):
try
:
os
.
chflags
(
dst
,
st
.
st_flags
)
except
OSError
,
why
:
if
not
hasattr
(
errno
,
'EOPNOTSUPP'
)
or
why
.
errno
!=
errno
.
EOPNOTSUPP
:
if
(
not
hasattr
(
errno
,
'EOPNOTSUPP'
)
or
why
.
errno
!=
errno
.
EOPNOTSUPP
):
raise
def
copy
(
src
,
dst
):
...
...
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