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
9fcd4b3d
Kaydet (Commit)
9fcd4b3d
authored
Agu 11, 2008
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#3134: shutil referenced undefined WindowsError symbol
üst
48361f5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
shutil.py
Lib/shutil.py
+10
-4
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/shutil.py
Dosyayı görüntüle @
9fcd4b3d
...
...
@@ -16,6 +16,11 @@ __all__ = ["copyfileobj","copyfile","copymode","copystat","copy","copy2",
class
Error
(
EnvironmentError
):
pass
try
:
WindowsError
except
NameError
:
WindowsError
=
None
def
copyfileobj
(
fsrc
,
fdst
,
length
=
16
*
1024
):
"""copy data from file-like object fsrc to file-like object fdst"""
while
1
:
...
...
@@ -162,11 +167,12 @@ def copytree(src, dst, symlinks=False, ignore=None):
errors
.
extend
(
err
.
args
[
0
])
try
:
copystat
(
src
,
dst
)
except
WindowsError
:
# can't copy file access times on Windows
pass
except
OSError
,
why
:
errors
.
extend
((
src
,
dst
,
str
(
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
)))
if
errors
:
raise
Error
,
errors
...
...
Misc/NEWS
Dosyayı görüntüle @
9fcd4b3d
...
...
@@ -44,6 +44,8 @@ Core and Builtins
Library
-------
- Issue #3134: shutil referenced undefined WindowsError symbol.
- Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
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