Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
945fff93
Commit
945fff93
authored
Apr 10, 2002
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add deprecation warnings for modules as documented
parent
4d9ed3d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Lib/statcache.py
Lib/statcache.py
+5
-0
Lib/xmllib.py
Lib/xmllib.py
+4
-0
No files found.
Lib/statcache.py
View file @
945fff93
...
...
@@ -3,6 +3,11 @@
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
from
stat
import
*
...
...
Lib/xmllib.py
View file @
945fff93
...
...
@@ -5,6 +5,10 @@
import
re
import
string
import
warnings
warnings
.
warn
(
"The xmllib module is obsolete. Use xml.sax instead."
,
DeprecationWarning
)
del
warnings
version
=
'0.3'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment