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
197a7702
Kaydet (Commit)
197a7702
authored
Kas 21, 2013
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- Issue #19555: Restore sysconfig.get_config_var('SO'), with a
DeprecationWarning pointing people at $EXT_SUFFIX.
üst
18fc7be8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
sysconfig.py
Lib/sysconfig.py
+7
-0
test_sysconfig.py
Lib/test/test_sysconfig.py
+19
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/sysconfig.py
Dosyayı görüntüle @
197a7702
...
...
@@ -409,6 +409,10 @@ def _init_posix(vars):
# _sysconfigdata is generated at build time, see _generate_posix_vars()
from
_sysconfigdata
import
build_time_vars
vars
.
update
(
build_time_vars
)
# For backward compatibility, see issue19555
SO
=
build_time_vars
.
get
(
'EXT_SUFFIX'
)
if
SO
is
not
None
:
vars
[
'SO'
]
=
SO
def
_init_non_posix
(
vars
):
"""Initialize the module as appropriate for NT"""
...
...
@@ -579,6 +583,9 @@ def get_config_var(name):
Equivalent to get_config_vars().get(name)
"""
if
name
==
'SO'
:
import
warnings
warnings
.
warn
(
'SO is deprecated, use EXT_SUFFIX'
,
DeprecationWarning
)
return
get_config_vars
()
.
get
(
name
)
...
...
Lib/test/test_sysconfig.py
Dosyayı görüntüle @
197a7702
...
...
@@ -369,6 +369,25 @@ class TestSysConfig(unittest.TestCase):
os
.
chdir
(
cwd
)
self
.
assertEqual
(
srcdir
,
srcdir2
)
@unittest.skipIf
(
sysconfig
.
get_config_var
(
'EXT_SUFFIX'
)
is
None
,
'EXT_SUFFIX required for this test'
)
def
test_SO_deprecation
(
self
):
self
.
assertWarns
(
DeprecationWarning
,
sysconfig
.
get_config_var
,
'SO'
)
@unittest.skipIf
(
sysconfig
.
get_config_var
(
'EXT_SUFFIX'
)
is
None
,
'EXT_SUFFIX required for this test'
)
def
test_SO_value
(
self
):
self
.
assertEqual
(
sysconfig
.
get_config_var
(
'SO'
),
sysconfig
.
get_config_var
(
'EXT_SUFFIX'
))
@unittest.skipIf
(
sysconfig
.
get_config_var
(
'EXT_SUFFIX'
)
is
None
,
'EXT_SUFFIX required for this test'
)
def
test_SO_in_vars
(
self
):
vars
=
sysconfig
.
get_config_vars
()
self
.
assertIsNotNone
(
vars
[
'SO'
])
self
.
assertEqual
(
vars
[
'SO'
],
vars
[
'EXT_SUFFIX'
])
class
MakefileTests
(
unittest
.
TestCase
):
...
...
Misc/NEWS
Dosyayı görüntüle @
197a7702
...
...
@@ -59,6 +59,9 @@ Core and Builtins
Library
-------
-
Issue
#
19555
:
Restore
sysconfig
.
get_config_var
(
'SO'
),
with
a
DeprecationWarning
pointing
people
at
$
EXT_SUFFIX
.
-
Issue
#
8813
:
Add
SSLContext
.
verify_flags
to
change
the
verification
flags
of
the
context
in
order
to
enable
certification
revocation
list
(
CRL
)
checks
or
strict
X509
rules
.
...
...
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