mirror of https://github.com/python/cpython
Deprecate the user module for removal in 3.0.
This commit is contained in:
parent
cae4f5f4ac
commit
e3b1940eb9
|
@ -4,7 +4,9 @@
|
||||||
|
|
||||||
.. module:: user
|
.. module:: user
|
||||||
:synopsis: A standard way to reference user-specific modules.
|
:synopsis: A standard way to reference user-specific modules.
|
||||||
|
:deprecated:
|
||||||
|
|
||||||
|
.. deprecated:: The user module has been removed in Python 3.0.
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
pair: .pythonrc.py; file
|
pair: .pythonrc.py; file
|
||||||
|
|
|
@ -126,7 +126,7 @@ class TestPy3KWarnings(unittest.TestCase):
|
||||||
|
|
||||||
class TestStdlibRemovals(unittest.TestCase):
|
class TestStdlibRemovals(unittest.TestCase):
|
||||||
|
|
||||||
all_platforms = ('audiodev', 'imputil', 'mutex')
|
all_platforms = ('audiodev', 'imputil', 'mutex', 'user')
|
||||||
|
|
||||||
def check_removal(self, module_name):
|
def check_removal(self, module_name):
|
||||||
"""Make sure the specified module, when imported, raises a
|
"""Make sure the specified module, when imported, raises a
|
||||||
|
|
|
@ -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.
|
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
|
import os
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- The user module has been deprecated for removal in Python 3.0.
|
||||||
|
|
||||||
- The stringold module has been deprecated for removal in Python 3.0.
|
- The stringold module has been deprecated for removal in Python 3.0.
|
||||||
|
|
||||||
- The mutex module has been deprecated for removal in Python 3.0.
|
- The mutex module has been deprecated for removal in Python 3.0.
|
||||||
|
|
Loading…
Reference in New Issue