mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add deprecation warnings for modules as documented
This commit is contained in:
parent
6e99704fcf
commit
ab3b9eb477
2 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,11 @@
|
||||||
There are functions to reset the cache or to selectively remove items.
|
There are functions to reset the cache or to selectively remove items.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The statcache module is obsolete. Use os.stat() instead.",
|
||||||
|
DeprecationWarning)
|
||||||
|
del warnings
|
||||||
|
|
||||||
import os as _os
|
import os as _os
|
||||||
from stat import *
|
from stat import *
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The xmllib module is obsolete. Use xml.sax instead.",
|
||||||
|
DeprecationWarning)
|
||||||
|
del warnings
|
||||||
|
|
||||||
version = '0.3'
|
version = '0.3'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue