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
d980c920
Kaydet (Commit)
d980c920
authored
Eki 06, 2004
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Escape locale data for regex metacharacters.
Closes bug #1039270.
üst
6b255fc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
_strptime.py
Lib/_strptime.py
+2
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/_strptime.py
Dosyayı görüntüle @
d980c920
...
...
@@ -18,6 +18,7 @@ import locale
import
calendar
from
re
import
compile
as
re_compile
from
re
import
IGNORECASE
from
re
import
escape
as
re_escape
from
datetime
import
date
as
datetime_date
__author__
=
"Brett Cannon"
...
...
@@ -367,7 +368,7 @@ class TimeRE(dict):
else
:
return
''
to_convert
.
sort
(
sorter
)
regex
=
'|'
.
join
(
to_convert
)
regex
=
'|'
.
join
(
[
re_escape
(
stuff
)
for
stuff
in
to_convert
]
)
regex
=
'(?P<
%
s>
%
s'
%
(
directive
,
regex
)
return
'
%
s)'
%
regex
...
...
Misc/NEWS
Dosyayı görüntüle @
d980c920
...
...
@@ -53,6 +53,8 @@ Extension modules
Library
-------
-
Bug
#
1039270
:
Locale
data
is
now
escaped
for
regex
metacharacters
.
-
Bug
#
807871
:
Fix
tkMessageBox
.
askyesno
result
.
-
Patch
#
1014992
:
In
tarfile
.
readline
,
never
return
more
than
a
line
.
...
...
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