mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
Updated import statements to use the new configparser module name.
Updated the documentation to use the new name. Revert addition of the stub entry for the old name. Georg, I am reverting your changes since this commit should propagate to py3k.
This commit is contained in:
parent
0a11f96f67
commit
e2514c6f10
9 changed files with 52 additions and 57 deletions
|
|
@ -65,9 +65,9 @@ def fileConfig(fname, defaults=None):
|
|||
rather than a filename, in which case the file-like object will be read
|
||||
using readfp.
|
||||
"""
|
||||
import ConfigParser
|
||||
import configparser
|
||||
|
||||
cp = ConfigParser.ConfigParser(defaults)
|
||||
cp = configparser.ConfigParser(defaults)
|
||||
if hasattr(cp, 'readfp') and hasattr(fname, 'readline'):
|
||||
cp.readfp(fname)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue