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
a7ffb663
Unverified
Kaydet (Commit)
a7ffb663
authored
Eki 25, 2018
tarafından
Steve Dower
Kaydeden (comit)
GitHub
Eki 25, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[3.7] bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082)
üst
69a3f153
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
ntpath.py
Lib/ntpath.py
+2
-2
test_ntpath.py
Lib/test/test_ntpath.py
+2
-0
2018-10-25-09-37-03.bpo-31047.kBbX8r.rst
...S.d/next/Library/2018-10-25-09-37-03.bpo-31047.kBbX8r.rst
+2
-0
No files found.
Lib/ntpath.py
Dosyayı görüntüle @
a7ffb663
...
...
@@ -523,8 +523,8 @@ else: # use native Windows method on Windows
def
abspath
(
path
):
"""Return the absolute version of a path."""
try
:
return
_getfullpathname
(
path
)
except
OSError
:
return
normpath
(
_getfullpathname
(
path
)
)
except
(
OSError
,
ValueError
)
:
return
_abspath_fallback
(
path
)
# realpath is a no-op on systems without islink support
...
...
Lib/test/test_ntpath.py
Dosyayı görüntüle @
a7ffb663
...
...
@@ -284,6 +284,8 @@ class TestNtpath(unittest.TestCase):
tester
(
'ntpath.abspath("")'
,
cwd_dir
)
tester
(
'ntpath.abspath(" ")'
,
cwd_dir
+
"
\\
"
)
tester
(
'ntpath.abspath("?")'
,
cwd_dir
+
"
\\
?"
)
drive
,
_
=
ntpath
.
splitdrive
(
cwd_dir
)
tester
(
'ntpath.abspath("/abc/")'
,
drive
+
"
\\
abc"
)
def
test_relpath
(
self
):
tester
(
'ntpath.relpath("a")'
,
'a'
)
...
...
Misc/NEWS.d/next/Library/2018-10-25-09-37-03.bpo-31047.kBbX8r.rst
0 → 100644
Dosyayı görüntüle @
a7ffb663
Fix ``ntpath.abspath`` regression where it didn't remove a trailing
separator on Windows. Patch by Tim Graham.
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