Kaydet (Commit) ab3b9eb4 authored tarafından Neal Norwitz's avatar Neal Norwitz

Add deprecation warnings for modules as documented

üst 6e99704f
...@@ -3,6 +3,11 @@ ...@@ -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 @@ ...@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment