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
ac19d85e
Kaydet (Commit)
ac19d85e
authored
Haz 01, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate htmllib and sgmllib for 3.0.
üst
681001e1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
8 deletions
+26
-8
htmllib.rst
Doc/library/htmllib.rst
+4
-1
sgmllib.rst
Doc/library/sgmllib.rst
+4
-2
htmllib.py
Lib/htmllib.py
+5
-0
sgmllib.py
Lib/sgmllib.py
+5
-0
test_htmllib.py
Lib/test/test_htmllib.py
+1
-1
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
test_sgmllib.py
Lib/test/test_sgmllib.py
+1
-1
NEWS
Misc/NEWS
+5
-2
No files found.
Doc/library/htmllib.rst
Dosyayı görüntüle @
ac19d85e
:mod:`htmllib` --- A parser for HTML documents
==============================================
.. module:: htmllib
:synopsis: A parser for HTML documents.
:deprecated:
.. deprecated:: 2.6
The :mod:`htmllib` module has been removed in Python 3.0.
.. index::
...
...
Doc/library/sgmllib.rst
Dosyayı görüntüle @
ac19d85e
:mod:`sgmllib` --- Simple SGML parser
=====================================
.. module:: sgmllib
:synopsis: Only as much of an SGML parser as needed to parse HTML.
:deprecated:
.. deprecated:: 2.6
The :mod:`sgmllib` module has been removed in Python 3.0.
.. index:: single: SGML
...
...
Lib/htmllib.py
Dosyayı görüntüle @
ac19d85e
...
...
@@ -4,6 +4,11 @@ See the HTML 2.0 specification:
http://www.w3.org/hypertext/WWW/MarkUp/html-spec/html-spec_toc.html
"""
from
warnings
import
warnpy3k
warnpy3k
(
"the htmllib module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
import
sgmllib
from
formatter
import
AS_IS
...
...
Lib/sgmllib.py
Dosyayı görüntüle @
ac19d85e
...
...
@@ -9,6 +9,11 @@
# not supported at all.
from
warnings
import
warnpy3k
warnpy3k
(
"the sgmllib module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
import
markupbase
import
re
...
...
Lib/test/test_htmllib.py
Dosyayı görüntüle @
ac19d85e
import
formatter
import
htmllib
import
unittest
from
test
import
test_support
htmllib
=
test_support
.
import_module
(
'htmllib'
,
deprecated
=
True
)
class
AnchorCollector
(
htmllib
.
HTMLParser
):
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
ac19d85e
...
...
@@ -137,7 +137,7 @@ class TestStdlibRemovals(unittest.TestCase):
# import side-effect.
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
'Bastion'
,
'compiler'
,
'dircache'
,
'fpformat'
,
'ihooks'
,
'mhlib'
,
'statvfs'
)
'ihooks'
,
'mhlib'
,
'statvfs'
,
'htmllib'
,
'sgmllib'
)
inclusive_platforms
=
{
'irix'
:
(
'pure'
,
'AL'
,
'al'
,
'CD'
,
'cd'
,
'cddb'
,
'cdplayer'
,
'CL'
,
'cl'
,
'DEVICE'
,
'GL'
,
'gl'
,
'ERRNO'
,
'FILE'
,
'FL'
,
'flp'
,
'fl'
,
...
...
Lib/test/test_sgmllib.py
Dosyayı görüntüle @
ac19d85e
import
pprint
import
re
import
sgmllib
import
unittest
from
test
import
test_support
sgmllib
=
test_support
.
import_module
(
'sgmllib'
,
deprecated
=
True
)
class
EventCollector
(
sgmllib
.
SGMLParser
):
...
...
Misc/NEWS
Dosyayı görüntüle @
ac19d85e
...
...
@@ -70,8 +70,11 @@ Extension Modules
Library
-------
- Issue #3011: locale module alias table was updated to the latest version
from the X.org locale.alias file
- The sgmllib and htmllib modules have been deprecated for removal
in Python 3.0.
- Issue #3011: locale module alias table was updated to the latest
version from the X.org locale.alias file.
- Issue #1797 (partial fix): ctypes NULL function pointers have a
False boolean value now.
...
...
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