mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
ConfigParser renaming reversal part 3: move module into place and adapt imports.
This commit is contained in:
parent
995ee9dab0
commit
392c6fc02d
14 changed files with 68 additions and 126 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