Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ff23e8cf
Kaydet (Commit)
ff23e8cf
authored
Mar 03, 2009
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix bootstrapping problem where setup.py was using configparser
before _collections had been built.
üst
dcaf329e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
configparser.py
Lib/configparser.py
+7
-2
No files found.
Lib/configparser.py
Dosyayı görüntüle @
ff23e8cf
...
@@ -87,8 +87,13 @@ ConfigParser -- responsible for parsing a list of
...
@@ -87,8 +87,13 @@ ConfigParser -- responsible for parsing a list of
write the configuration state in .ini format
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
import
re
from
collections
import
OrderedDict
__all__
=
[
"NoSectionError"
,
"DuplicateSectionError"
,
"NoOptionError"
,
__all__
=
[
"NoSectionError"
,
"DuplicateSectionError"
,
"NoOptionError"
,
"InterpolationError"
,
"InterpolationDepthError"
,
"InterpolationError"
,
"InterpolationDepthError"
,
...
@@ -216,7 +221,7 @@ class MissingSectionHeaderError(ParsingError):
...
@@ -216,7 +221,7 @@ class MissingSectionHeaderError(ParsingError):
class
RawConfigParser
:
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
.
_dict
=
dict_type
self
.
_sections
=
self
.
_dict
()
self
.
_sections
=
self
.
_dict
()
self
.
_defaults
=
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