summaryrefslogtreecommitdiffstats
path: root/Lib/xmllib.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2009-05-08 02:28:39 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2009-05-08 02:28:39 (GMT)
commitd846f1d4c21f4589966512f78a4a4d74f8399d6d (patch)
treeb0133d10453f7707201fa5328cd9ddd14e13a6ba /Lib/xmllib.py
parent6f9977852ff61be2f55f82bbdb92e486c23d2dd9 (diff)
downloadcpython-d846f1d4c21f4589966512f78a4a4d74f8399d6d.zip
cpython-d846f1d4c21f4589966512f78a4a4d74f8399d6d.tar.gz
cpython-d846f1d4c21f4589966512f78a4a4d74f8399d6d.tar.bz2
#4351: more appropriate DeprecationWarning stacklevels
Diffstat (limited to 'Lib/xmllib.py')
-rw-r--r--Lib/xmllib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/xmllib.py b/Lib/xmllib.py
index 2a189cd..96ee841 100644
--- a/Lib/xmllib.py
+++ b/Lib/xmllib.py
@@ -6,7 +6,8 @@ import re
import string
import warnings
-warnings.warn("The xmllib module is obsolete. Use xml.sax instead.", DeprecationWarning)
+warnings.warn("The xmllib module is obsolete. Use xml.sax instead.",
+ DeprecationWarning, 2)
del warnings
version = '0.3'