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
aa458bc4
Kaydet (Commit)
aa458bc4
authored
Nis 22, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Merged in Python 1.5.1 compatibility changes from the 0.1.3 branch:
added 'abspath()' and 'extend()'.
üst
d80506c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
util.py
Lib/distutils/util.py
+24
-0
No files found.
Lib/distutils/util.py
Dosyayı görüntüle @
aa458bc4
...
...
@@ -18,6 +18,30 @@ from distutils.dep_util import *
from
distutils.archive_util
import
*
# Need to define 'abspath()', because it was new with Python 1.5.2
if
hasattr
(
os
.
path
,
'abspath'
):
abspath
=
os
.
path
.
abspath
else
:
def
abspath
(
path
):
if
not
os
.
path
.
isabs
(
path
):
path
=
os
.
path
.
join
(
os
.
getcwd
(),
path
)
return
os
.
path
.
normpath
(
path
)
# More backwards compatability hacks
def
extend
(
list
,
new_list
):
"""Appends the list 'new_list' to 'list', just like the 'extend()'
list method does in Python 1.5.2 -- but this works on earlier
versions of Python too."""
if
hasattr
(
list
,
'extend'
):
list
.
extend
(
new_list
)
else
:
list
[
len
(
list
):]
=
new_list
# extend ()
def
get_platform
():
"""Return a string (suitable for tacking onto directory names) that
identifies the current platform. Under Unix, identifies both the OS
...
...
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