Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ff23e8cf
Commit
ff23e8cf
authored
Mar 03, 2009
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bootstrapping problem where setup.py was using configparser
before _collections had been built.
parent
dcaf329e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Lib/configparser.py
Lib/configparser.py
+7
-2
No files found.
Lib/configparser.py
View file @
ff23e8cf
...
...
@@ -87,8 +87,13 @@ ConfigParser -- responsible for parsing a list of
write the configuration state in .ini format
"""
try
:
from
collections
import
OrderedDict
as
_default_dict
except
ImportError
:
# fallback for setup.py which hasn't yet built _collections
_default_dict
=
dict
import
re
from
collections
import
OrderedDict
__all__
=
[
"NoSectionError"
,
"DuplicateSectionError"
,
"NoOptionError"
,
"InterpolationError"
,
"InterpolationDepthError"
,
...
...
@@ -216,7 +221,7 @@ class MissingSectionHeaderError(ParsingError):
class
RawConfigParser
:
def
__init__
(
self
,
defaults
=
None
,
dict_type
=
OrderedD
ict
):
def
__init__
(
self
,
defaults
=
None
,
dict_type
=
_default_d
ict
):
self
.
_dict
=
dict_type
self
.
_sections
=
self
.
_dict
()
self
.
_defaults
=
self
.
_dict
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment