Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
31a673da
Kaydet (Commit)
31a673da
authored
May 05, 2010
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
removed non needed lines
üst
d2f3e3fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
shutil.py
Lib/shutil.py
+1
-2
No files found.
Lib/shutil.py
Dosyayı görüntüle @
31a673da
...
@@ -67,8 +67,6 @@ def copyfile(src, dst):
...
@@ -67,8 +67,6 @@ def copyfile(src, dst):
if
_samefile
(
src
,
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
for
fn
in
[
src
,
dst
]:
for
fn
in
[
src
,
dst
]:
try
:
try
:
st
=
os
.
stat
(
fn
)
st
=
os
.
stat
(
fn
)
...
@@ -79,6 +77,7 @@ def copyfile(src, dst):
...
@@ -79,6 +77,7 @@ def copyfile(src, dst):
# XXX What about other special files? (sockets, devices...)
# XXX What about other special files? (sockets, devices...)
if
stat
.
S_ISFIFO
(
st
.
st_mode
):
if
stat
.
S_ISFIFO
(
st
.
st_mode
):
raise
SpecialFileError
(
"`
%
s` is a named pipe"
%
fn
)
raise
SpecialFileError
(
"`
%
s` is a named pipe"
%
fn
)
with
open
(
src
,
'rb'
)
as
fsrc
:
with
open
(
src
,
'rb'
)
as
fsrc
:
with
open
(
dst
,
'wb'
)
as
fdst
:
with
open
(
dst
,
'wb'
)
as
fdst
:
copyfileobj
(
fsrc
,
fdst
)
copyfileobj
(
fsrc
,
fdst
)
...
...
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