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
1392f71c
Kaydet (Commit)
1392f71c
authored
May 16, 2015
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24210: Silence a PendingDeprecationWarning warning in platform.platform().
üst
6738b115
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
platform.py
Lib/platform.py
+11
-1
No files found.
Lib/platform.py
Dosyayı görüntüle @
1392f71c
...
@@ -114,6 +114,8 @@ __version__ = '1.0.7'
...
@@ -114,6 +114,8 @@ __version__ = '1.0.7'
import
collections
import
collections
import
sys
,
os
,
re
,
subprocess
import
sys
,
os
,
re
,
subprocess
import
warnings
### Globals & Constants
### Globals & Constants
# Determine the platform's /dev/null device
# Determine the platform's /dev/null device
...
@@ -1438,7 +1440,15 @@ def platform(aliased=0, terse=0):
...
@@ -1438,7 +1440,15 @@ def platform(aliased=0, terse=0):
elif
system
in
(
'Linux'
,):
elif
system
in
(
'Linux'
,):
# Linux based systems
# Linux based systems
distname
,
distversion
,
distid
=
dist
(
''
)
with
warnings
.
catch_warnings
():
# see issue #1322 for more information
warnings
.
filterwarnings
(
'ignore'
,
'dist
\
(
\
) and linux_distribution
\
(
\
) '
'functions are deprecated .*'
,
PendingDeprecationWarning
,
)
distname
,
distversion
,
distid
=
dist
(
''
)
if
distname
and
not
terse
:
if
distname
and
not
terse
:
platform
=
_platform
(
system
,
release
,
machine
,
processor
,
platform
=
_platform
(
system
,
release
,
machine
,
processor
,
'with'
,
'with'
,
...
...
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