mirror of https://github.com/python/cpython
Renamed the ConfigParser module to 'configparser'.
This commit is contained in:
parent
1b9df6862a
commit
e3a23c0734
|
@ -0,0 +1,8 @@
|
|||
import sys
|
||||
from warnings import warnpy3k
|
||||
|
||||
warnpy3k("the ConfigParser module has been renamed "
|
||||
"to 'configparser' in Python 3.0", stacklevel=2)
|
||||
|
||||
import configparser
|
||||
sys.modules[__name__] = configparser
|
|
@ -203,7 +203,8 @@ class TestStdlibRemovals(unittest.TestCase):
|
|||
class TestStdlibRenames(unittest.TestCase):
|
||||
|
||||
renames = {'copy_reg': 'copyreg', 'Queue': 'queue',
|
||||
'SocketServer': 'socketserver'}
|
||||
'SocketServer': 'socketserver',
|
||||
'ConfigParser': 'configparser'}
|
||||
|
||||
def check_rename(self, module_name, new_module_name):
|
||||
"""Make sure that:
|
||||
|
|
Loading…
Reference in New Issue