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
a16387ab
Kaydet (Commit)
a16387ab
authored
May 30, 2019
tarafından
Ying Wang
Kaydeden (comit)
Giampaolo Rodola
May 30, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-24564: shutil.copystat(): ignore EINVAL on os.setxattr() (GH-13369)
üst
80878312
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
shutil.py
Lib/shutil.py
+3
-2
2019-05-16-23-40-36.bpo-24564.lIwV_7.rst
...S.d/next/Library/2019-05-16-23-40-36.bpo-24564.lIwV_7.rst
+3
-0
No files found.
Lib/shutil.py
Dosyayı görüntüle @
a16387ab
...
@@ -309,7 +309,7 @@ if hasattr(os, 'listxattr'):
...
@@ -309,7 +309,7 @@ if hasattr(os, 'listxattr'):
try
:
try
:
names
=
os
.
listxattr
(
src
,
follow_symlinks
=
follow_symlinks
)
names
=
os
.
listxattr
(
src
,
follow_symlinks
=
follow_symlinks
)
except
OSError
as
e
:
except
OSError
as
e
:
if
e
.
errno
not
in
(
errno
.
ENOTSUP
,
errno
.
ENODATA
):
if
e
.
errno
not
in
(
errno
.
ENOTSUP
,
errno
.
ENODATA
,
errno
.
EINVAL
):
raise
raise
return
return
for
name
in
names
:
for
name
in
names
:
...
@@ -317,7 +317,8 @@ if hasattr(os, 'listxattr'):
...
@@ -317,7 +317,8 @@ if hasattr(os, 'listxattr'):
value
=
os
.
getxattr
(
src
,
name
,
follow_symlinks
=
follow_symlinks
)
value
=
os
.
getxattr
(
src
,
name
,
follow_symlinks
=
follow_symlinks
)
os
.
setxattr
(
dst
,
name
,
value
,
follow_symlinks
=
follow_symlinks
)
os
.
setxattr
(
dst
,
name
,
value
,
follow_symlinks
=
follow_symlinks
)
except
OSError
as
e
:
except
OSError
as
e
:
if
e
.
errno
not
in
(
errno
.
EPERM
,
errno
.
ENOTSUP
,
errno
.
ENODATA
):
if
e
.
errno
not
in
(
errno
.
EPERM
,
errno
.
ENOTSUP
,
errno
.
ENODATA
,
errno
.
EINVAL
):
raise
raise
else
:
else
:
def
_copyxattr
(
*
args
,
**
kwargs
):
def
_copyxattr
(
*
args
,
**
kwargs
):
...
...
Misc/NEWS.d/next/Library/2019-05-16-23-40-36.bpo-24564.lIwV_7.rst
0 → 100644
Dosyayı görüntüle @
a16387ab
:func:`shutil.copystat` now ignores :const:`errno.EINVAL` on :func:`os.setxattr` which may occur when copying files on filesystems without extended attributes support.
Original patch by Giampaolo Rodola, updated by Ying Wang.
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