mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
#4351: more appropriate DeprecationWarning stacklevels
This commit is contained in:
parent
6f9977852f
commit
d846f1d4c2
9 changed files with 22 additions and 16 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue