summaryrefslogtreecommitdiffstats
path: root/Lib/htmllib.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-01 21:19:14 (GMT)
committerGeorg Brandl <georg@python.org>2008-06-01 21:19:14 (GMT)
commitac19d85e04855642a856473b91f3d621e844ad52 (patch)
tree63a44aba6093a578462f2ec5f5c4b1d7ecf767bb /Lib/htmllib.py
parent681001e11ba164c67a42251bd2bcee2b260188c3 (diff)
downloadcpython-ac19d85e04855642a856473b91f3d621e844ad52.zip
cpython-ac19d85e04855642a856473b91f3d621e844ad52.tar.gz
cpython-ac19d85e04855642a856473b91f3d621e844ad52.tar.bz2
Deprecate htmllib and sgmllib for 3.0.
Diffstat (limited to 'Lib/htmllib.py')
-rw-r--r--Lib/htmllib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/htmllib.py b/Lib/htmllib.py
index 24a2e2f..44647db 100644
--- a/Lib/htmllib.py
+++ b/Lib/htmllib.py
@@ -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