summaryrefslogtreecommitdiff
path: root/Lib/lib-old/htmlentitydefs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib-old/htmlentitydefs.py')
-rw-r--r--Lib/lib-old/htmlentitydefs.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/lib-old/htmlentitydefs.py b/Lib/lib-old/htmlentitydefs.py
new file mode 100644
index 0000000000..340b6234ed
--- /dev/null
+++ b/Lib/lib-old/htmlentitydefs.py
@@ -0,0 +1,8 @@
+from warnings import warnpy3k
+
+warnpy3k(("The htmlentitydefs module has been renamed to html.entities"
+ " in Python 3.0"), stacklevel=2)
+
+from sys import modules
+import html.entities
+modules["htmlentitydefs"] = html.entities