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
c95404ff
Unverified
Kaydet (Commit)
c95404ff
authored
Şub 05, 2019
tarafından
Inada Naoki
Kaydeden (comit)
GitHub
Şub 05, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
email: use dict instead of OrderedDict (GH-11709)
üst
f3451709
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
_header_value_parser.py
Lib/email/_header_value_parser.py
+1
-2
No files found.
Lib/email/_header_value_parser.py
Dosyayı görüntüle @
c95404ff
...
@@ -70,7 +70,6 @@ XXX: provide complete list of token types.
...
@@ -70,7 +70,6 @@ XXX: provide complete list of token types.
import
re
import
re
import
urllib
# For urllib.parse.unquote
import
urllib
# For urllib.parse.unquote
from
string
import
hexdigits
from
string
import
hexdigits
from
collections
import
OrderedDict
from
operator
import
itemgetter
from
operator
import
itemgetter
from
email
import
_encoded_words
as
_ew
from
email
import
_encoded_words
as
_ew
from
email
import
errors
from
email
import
errors
...
@@ -720,7 +719,7 @@ class MimeParameters(TokenList):
...
@@ -720,7 +719,7 @@ class MimeParameters(TokenList):
# to assume the RFC 2231 pieces can come in any order. However, we
# to assume the RFC 2231 pieces can come in any order. However, we
# output them in the order that we first see a given name, which gives
# output them in the order that we first see a given name, which gives
# us a stable __str__.
# us a stable __str__.
params
=
OrderedDict
()
params
=
{}
# Using order preserving dict from Python 3.7+
for
token
in
self
:
for
token
in
self
:
if
not
token
.
token_type
.
endswith
(
'parameter'
):
if
not
token
.
token_type
.
endswith
(
'parameter'
):
continue
continue
...
...
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