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
8256242b
Kaydet (Commit)
8256242b
authored
Mar 05, 2011
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapt platform and test_platform to the build identification changes.
üst
1ca2e796
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
platform.py
Lib/platform.py
+3
-1
test_platform.py
Lib/test/test_platform.py
+5
-1
No files found.
Lib/platform.py
Dosyayı görüntüle @
8256242b
...
...
@@ -1373,7 +1373,9 @@ def _sys_version(sys_version=None):
name
=
'CPython'
builddate
=
builddate
+
' '
+
buildtime
if
hasattr
(
sys
,
'subversion'
):
if
hasattr
(
sys
,
'_mercurial'
):
_
,
branch
,
revision
=
sys
.
_mercurial
elif
hasattr
(
sys
,
'subversion'
):
# sys.subversion was added in Python 2.5
_
,
branch
,
revision
=
sys
.
subversion
else
:
...
...
Lib/test/test_platform.py
Dosyayı görüntüle @
8256242b
...
...
@@ -51,11 +51,13 @@ class PlatformTest(unittest.TestCase):
def
setUp
(
self
):
self
.
save_version
=
sys
.
version
self
.
save_subversion
=
sys
.
subversion
self
.
save_mercurial
=
sys
.
_mercurial
self
.
save_platform
=
sys
.
platform
def
tearDown
(
self
):
sys
.
version
=
self
.
save_version
sys
.
subversion
=
self
.
save_subversion
sys
.
_mercurial
=
self
.
save_mercurial
sys
.
platform
=
self
.
save_platform
def
test_sys_version
(
self
):
...
...
@@ -103,10 +105,12 @@ class PlatformTest(unittest.TestCase):
sys_versions
.
items
():
sys
.
version
=
version_tag
if
subversion
is
None
:
if
hasattr
(
sys
,
"_mercurial"
):
del
sys
.
_mercurial
if
hasattr
(
sys
,
"subversion"
):
del
sys
.
subversion
else
:
sys
.
subversion
=
subversion
sys
.
_mercurial
=
subversion
if
sys_platform
is
not
None
:
sys
.
platform
=
sys_platform
self
.
assertEqual
(
platform
.
python_implementation
(),
info
[
0
])
...
...
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