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
d5a09852
Kaydet (Commit)
d5a09852
authored
May 10, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
The Canvas module has been deprecated for removal in 3.0.
üst
756bc0b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
Canvas.py
Lib/lib-tk/Canvas.py
+4
-0
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+2
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/lib-tk/Canvas.py
Dosyayı görüntüle @
d5a09852
...
...
@@ -3,6 +3,10 @@
# NOTE: This module was an experiment and is now obsolete.
# It's best to use the Tkinter.Canvas class directly.
from
warnings
import
warnpy3k
warnpy3k
(
"the Canvas module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
from
Tkinter
import
Canvas
,
_cnfmerge
,
_flatten
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
d5a09852
...
...
@@ -131,7 +131,8 @@ class TestStdlibRemovals(unittest.TestCase):
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
'Bastion'
,
'compiler'
)
inclusive_platforms
=
{
'irix'
:(
'pure'
,)}
optional_modules
=
(
'bsddb185'
,)
# XXX Don't know if lib-tk is only installed if _tkinter is built.
optional_modules
=
(
'bsddb185'
,
'Canvas'
)
def
check_removal
(
self
,
module_name
,
optional
=
False
):
"""Make sure the specified module, when imported, raises a
...
...
Misc/NEWS
Dosyayı görüntüle @
d5a09852
...
...
@@ -23,6 +23,8 @@ Extension Modules
Library
-------
- The Canvas module has been deprecated for removal in Python 3.0.
- The compiler package has been deprecated for removal in Python 3.0.
- The Bastion and rexec modules have been deprecated for removal in Python 3.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