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
9ada3d6e
Kaydet (Commit)
9ada3d6e
authored
Nis 21, 2006
tarafından
Thomas Wouters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Merge trunk up to 43069, putting re.py back and hopefully making the branch
usable again.
üst
725ccd18
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
re.py
Lib/re.py
+0
-0
regrtest.py
Lib/test/regrtest.py
+2
-2
test___all__.py
Lib/test/test___all__.py
+0
-1
test_re.py
Lib/test/test_re.py
+1
-1
_sre.c
Modules/_sre.c
+4
-2
No files found.
Lib/
s
re.py
→
Lib/re.py
Dosyayı görüntüle @
9ada3d6e
File moved
Lib/test/regrtest.py
Dosyayı görüntüle @
9ada3d6e
...
...
@@ -110,7 +110,7 @@ import sys
import
getopt
import
random
import
warnings
import
s
re
import
re
import
cStringIO
import
traceback
...
...
@@ -525,7 +525,7 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False):
_path_created
.
clear
()
warnings
.
filters
[:]
=
fs
gc
.
collect
()
s
re
.
purge
()
re
.
purge
()
_strptime
.
_regex_cache
.
clear
()
urlparse
.
clear_cache
()
urllib
.
urlcleanup
()
...
...
Lib/test/test___all__.py
Dosyayı görüntüle @
9ada3d6e
...
...
@@ -145,7 +145,6 @@ class AllTest(unittest.TestCase):
self
.
check_all
(
"smtplib"
)
self
.
check_all
(
"sndhdr"
)
self
.
check_all
(
"socket"
)
self
.
check_all
(
"sre"
)
self
.
check_all
(
"_strptime"
)
self
.
check_all
(
"symtable"
)
self
.
check_all
(
"tabnanny"
)
...
...
Lib/test/test_re.py
Dosyayı görüntüle @
9ada3d6e
...
...
@@ -3,7 +3,7 @@ sys.path = ['.'] + sys.path
from
test.test_support
import
verbose
,
run_unittest
import
re
from
s
re
import
Scanner
from
re
import
Scanner
import
sys
,
os
,
traceback
from
weakref
import
proxy
...
...
Modules/_sre.c
Dosyayı görüntüle @
9ada3d6e
...
...
@@ -51,6 +51,8 @@ static char copyright[] =
#define SRE_MODULE "sre"
#endif
#define SRE_PY_MODULE "re"
/* defining this one enables tracing */
#undef VERBOSE
...
...
@@ -2455,7 +2457,7 @@ pattern_subx(PatternObject* self, PyObject* template, PyObject* string,
}
else
{
/* not a literal; hand it over to the template compiler */
filter
=
call
(
SRE_MODULE
,
"_subx"
,
SRE_
PY_
MODULE
,
"_subx"
,
PyTuple_Pack
(
2
,
self
,
template
)
);
if
(
!
filter
)
...
...
@@ -2872,7 +2874,7 @@ match_expand(MatchObject* self, PyObject* args)
/* delegate to Python code */
return
call
(
SRE_MODULE
,
"_expand"
,
SRE_
PY_
MODULE
,
"_expand"
,
PyTuple_Pack
(
3
,
self
->
pattern
,
self
,
template
)
);
}
...
...
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