Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
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
django
Commits
f2868f97
Kaydet (Commit)
f2868f97
authored
Eki 13, 2017
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated email.Util (Python 2) references to email.utils (Python 3).
üst
4f27e475
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
feedgenerator.py
django/utils/feedgenerator.py
+1
-1
http.py
django/utils/http.py
+1
-1
No files found.
django/utils/feedgenerator.py
Dosyayı görüntüle @
f2868f97
...
...
@@ -38,7 +38,7 @@ def rfc2822_date(date):
days
=
(
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
)
# Support datetime objects older than 1900
date
=
datetime_safe
.
new_datetime
(
date
)
#
We do this ourselves to be timezone aware, email.Utils is no
t tz aware.
#
Timezone aware formatting. email.utils.formatdate() isn'
t tz aware.
dow
=
days
[
date
.
weekday
()]
month
=
months
[
date
.
month
-
1
]
time_str
=
date
.
strftime
(
'
%
s,
%%
d
%
s
%%
Y
%%
H:
%%
M:
%%
S '
%
(
dow
,
month
))
...
...
django/utils/http.py
Dosyayı görüntüle @
f2868f97
...
...
@@ -145,7 +145,7 @@ def parse_http_date(date):
Return an integer expressed in seconds since the epoch, in UTC.
"""
# email
s.Util.parsedate
does the job for RFC1123 dates; unfortunately
# email
.utils.parsedate()
does the job for RFC1123 dates; unfortunately
# RFC7231 makes it mandatory to support RFC850 dates too. So we roll
# our own RFC-compliant parsing.
for
regex
in
RFC1123_DATE
,
RFC850_DATE
,
ASCTIME_DATE
:
...
...
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