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
d65cd091
Kaydet (Commit)
d65cd091
authored
Eyl 10, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #28070: Fixed parsing inline verbose flag in regular expressions.
üst
99a65702
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
sre_parse.py
Lib/sre_parse.py
+1
-0
test_re.py
Lib/test/test_re.py
+3
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/sre_parse.py
Dosyayı görüntüle @
d65cd091
...
@@ -847,6 +847,7 @@ def parse(str, flags=0, pattern=None):
...
@@ -847,6 +847,7 @@ def parse(str, flags=0, pattern=None):
pattern
=
Pattern
()
pattern
=
Pattern
()
pattern
.
flags
=
flags
|
SRE_FLAG_VERBOSE
pattern
.
flags
=
flags
|
SRE_FLAG_VERBOSE
pattern
.
str
=
str
pattern
.
str
=
str
source
.
seek
(
0
)
p
=
_parse_sub
(
source
,
pattern
,
True
,
False
)
p
=
_parse_sub
(
source
,
pattern
,
True
,
False
)
p
.
pattern
.
flags
=
fix_flags
(
str
,
p
.
pattern
.
flags
)
p
.
pattern
.
flags
=
fix_flags
(
str
,
p
.
pattern
.
flags
)
...
...
Lib/test/test_re.py
Dosyayı görüntüle @
d65cd091
...
@@ -1276,6 +1276,9 @@ class ReTests(unittest.TestCase):
...
@@ -1276,6 +1276,9 @@ class ReTests(unittest.TestCase):
q
=
p
.
match
(
upper_char
)
q
=
p
.
match
(
upper_char
)
self
.
assertTrue
(
q
)
self
.
assertTrue
(
q
)
self
.
assertTrue
(
re
.
match
(
'(?ixu) '
+
upper_char
,
lower_char
))
self
.
assertTrue
(
re
.
match
(
'(?ixu) '
+
lower_char
,
upper_char
))
def
test_dollar_matches_twice
(
self
):
def
test_dollar_matches_twice
(
self
):
"$ matches the end of string, and just before the terminating
\n
"
"$ matches the end of string, and just before the terminating
\n
"
pattern
=
re
.
compile
(
'$'
)
pattern
=
re
.
compile
(
'$'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
d65cd091
...
@@ -138,6 +138,8 @@ Core and Builtins
...
@@ -138,6 +138,8 @@ Core and Builtins
Library
Library
-------
-------
-
Issue
#
28070
:
Fixed
parsing
inline
verbose
flag
in
regular
expressions
.
-
Issue
#
19500
:
Add
client
-
side
SSL
session
resumption
to
the
ssl
module
.
-
Issue
#
19500
:
Add
client
-
side
SSL
session
resumption
to
the
ssl
module
.
-
Issue
#
28022
:
Deprecate
ssl
-
related
arguments
in
favor
of
SSLContext
.
The
-
Issue
#
28022
:
Deprecate
ssl
-
related
arguments
in
favor
of
SSLContext
.
The
...
...
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