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
2add352c
Kaydet (Commit)
2add352c
authored
Şub 04, 2008
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove one use of UserDict.UserDict
üst
b3460423
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
cgi.py
Lib/cgi.py
+11
-2
No files found.
Lib/cgi.py
Dosyayı görüntüle @
2add352c
...
@@ -40,7 +40,7 @@ import os
...
@@ -40,7 +40,7 @@ import os
import
urllib
import
urllib
import
mimetools
import
mimetools
import
rfc822
import
rfc822
import
UserDict
import
collections
from
io
import
StringIO
from
io
import
StringIO
__all__
=
[
"MiniFieldStorage"
,
"FieldStorage"
,
"FormContentDict"
,
__all__
=
[
"MiniFieldStorage"
,
"FieldStorage"
,
"FormContentDict"
,
...
@@ -781,7 +781,7 @@ class FieldStorage:
...
@@ -781,7 +781,7 @@ class FieldStorage:
# Backwards Compatibility Classes
# Backwards Compatibility Classes
# ===============================
# ===============================
class
FormContentDict
(
UserDict
.
UserDict
):
class
FormContentDict
(
collections
.
Mapping
):
"""Form content as dictionary with a list of values per field.
"""Form content as dictionary with a list of values per field.
form = FormContentDict()
form = FormContentDict()
...
@@ -800,6 +800,15 @@ class FormContentDict(UserDict.UserDict):
...
@@ -800,6 +800,15 @@ class FormContentDict(UserDict.UserDict):
strict_parsing
=
strict_parsing
)
strict_parsing
=
strict_parsing
)
self
.
query_string
=
environ
[
'QUERY_STRING'
]
self
.
query_string
=
environ
[
'QUERY_STRING'
]
def
__len__
(
self
):
return
len
(
self
.
dict
)
def
__iter__
(
self
):
return
iter
(
self
.
dict
)
def
__getitem__
(
self
,
key
):
return
self
.
dict
[
key
]
class
SvFormContentDict
(
FormContentDict
):
class
SvFormContentDict
(
FormContentDict
):
"""Form content as dictionary expecting a single value per field.
"""Form content as dictionary expecting a single value per field.
...
...
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