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
ae590db3
Kaydet (Commit)
ae590db3
authored
Eki 07, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix join to support multiple arguments.
(Why isn't this file identical to ntpath.py?)
üst
abfdd706
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
dospath.py
Lib/dospath.py
+12
-9
No files found.
Lib/dospath.py
Dosyayı görüntüle @
ae590db3
...
...
@@ -35,15 +35,18 @@ def isabs(s):
return
s
!=
''
and
s
[:
1
]
in
'/
\\
'
# Join two pathnames.
# Ignore the first part if the second part is absolute.
# Insert a '/' unless the first part is empty or already ends in '/'.
def
join
(
a
,
b
):
if
isabs
(
b
):
return
b
if
a
==
''
or
a
[
-
1
:]
in
'/
\\
'
:
return
a
+
b
# Note: join('x', '') returns 'x/'; is this what we want?
return
a
+
os
.
sep
+
b
# Join two (or more) paths.
def
join
(
a
,
*
p
):
path
=
a
for
b
in
p
:
if
isabs
(
b
):
path
=
b
elif
path
==
''
or
path
[
-
1
:]
in
'/
\\
'
:
path
=
path
+
b
else
:
path
=
path
+
os
.
sep
+
b
return
path
# Split a path in a drive specification (a drive letter followed by a
...
...
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