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
4c1f881f
Kaydet (Commit)
4c1f881f
authored
May 10, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate Bastion and rexec for 3.0.
üst
ccdf9081
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
2 deletions
+17
-2
bastion.rst
Doc/library/bastion.rst
+5
-0
rexec.rst
Doc/library/rexec.rst
+4
-1
Bastion.py
Lib/Bastion.py
+3
-0
rexec.py
Lib/rexec.py
+3
-0
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+2
-1
No files found.
Doc/library/bastion.rst
Dosyayı görüntüle @
4c1f881f
...
...
@@ -4,6 +4,11 @@
.. module:: Bastion
:synopsis: Providing restricted access to objects.
:deprecated:
.. deprecated:: 2.6
The Bastion module has been removed in Python 3.0.
.. moduleauthor:: Barry Warsaw <bwarsaw@python.org>
...
...
Doc/library/rexec.rst
Dosyayı görüntüle @
4c1f881f
...
...
@@ -4,7 +4,10 @@
.. module:: rexec
:synopsis: Basic restricted execution framework.
:deprecated:
.. deprecated:: 2.6
The rexec module has been removed in Python 3.0.
.. versionchanged:: 2.3
Disabled module.
...
...
Lib/Bastion.py
Dosyayı görüntüle @
4c1f881f
...
...
@@ -25,6 +25,9 @@ the repr() of the original object. This is precomputed when the
bastion is created.
"""
from
warnings
import
warnpy3k
warnpy3k
(
"the Bastion module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
__all__
=
[
"BastionClass"
,
"Bastion"
]
...
...
Lib/rexec.py
Dosyayı görüntüle @
4c1f881f
...
...
@@ -16,6 +16,9 @@ XXX To do:
- r_exec etc. with explicit globals/locals? (Use rexec("exec ... in ...")?)
"""
from
warnings
import
warnpy3k
warnpy3k
(
"the rexec module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
import
sys
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
4c1f881f
...
...
@@ -128,7 +128,8 @@ class TestStdlibRemovals(unittest.TestCase):
# test.testall not tested as it executes all unit tests as an
# import side-effect.
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
)
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
'Bastion'
)
inclusive_platforms
=
{
'irix'
:(
'pure'
,)}
def
check_removal
(
self
,
module_name
,
optional
=
False
):
...
...
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