mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Deprecate the user module for removal in 3.0.
This commit is contained in:
parent
cae4f5f4ac
commit
e3b1940eb9
4 changed files with 8 additions and 1 deletions
|
@ -20,6 +20,9 @@ The user's .pythonrc.py could conceivably test for sys.version if it
|
|||
wishes to do different things depending on the Python version.
|
||||
|
||||
"""
|
||||
from warnings import warnpy3k
|
||||
warnpy3k("the user module has been removed in Python 3.0", stacklevel=2)
|
||||
del warnpy3k
|
||||
|
||||
import os
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue