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
1d922d0c
Kaydet (Commit)
1d922d0c
authored
Kas 18, 2014
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Close #22370: Windows detection in pathlib is now more robust.
üst
28c295f4
db118f5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
pathlib.py
Lib/pathlib.py
+4
-5
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/pathlib.py
Dosyayı görüntüle @
1d922d0c
...
...
@@ -15,16 +15,15 @@ from urllib.parse import quote_from_bytes as urlquote_from_bytes
supports_symlinks
=
True
try
:
if
os
.
name
==
'nt'
:
import
nt
except
ImportError
:
nt
=
None
else
:
if
sys
.
getwindowsversion
()[:
2
]
>=
(
6
,
0
):
from
nt
import
_getfinalpathname
else
:
supports_symlinks
=
False
_getfinalpathname
=
None
else
:
nt
=
None
__all__
=
[
...
...
@@ -110,7 +109,7 @@ class _WindowsFlavour(_Flavour):
has_drv
=
True
pathmod
=
ntpath
is_supported
=
(
nt
is
not
None
)
is_supported
=
(
os
.
name
==
'nt'
)
drive_letters
=
(
set
(
chr
(
x
)
for
x
in
range
(
ord
(
'a'
),
ord
(
'z'
)
+
1
))
|
...
...
Misc/NEWS
Dosyayı görüntüle @
1d922d0c
...
...
@@ -185,6 +185,8 @@ Core and Builtins
Library
-------
-
Issue
#
22370
:
Windows
detection
in
pathlib
is
now
more
robust
.
-
Issue
#
22841
:
Reject
coroutines
in
asyncio
add_signal_handler
().
Patch
by
Ludovic
.
Gasc
.
...
...
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