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
cf3520c2
Kaydet (Commit)
cf3520c2
authored
May 11, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove the sre module.
üst
49d1b4f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
23 deletions
+2
-23
sre.py
Lib/sre.py
+0
-13
test_re.py
Lib/test/test_re.py
+0
-10
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/sre.py
deleted
100644 → 0
Dosyayı görüntüle @
49d1b4f9
"""This file is only retained for backwards compatibility.
It will be removed in the future. sre was moved to re in version 2.5.
"""
import
warnings
warnings
.
warn
(
"The sre module is deprecated, please import re."
,
DeprecationWarning
,
2
)
from
re
import
*
from
re
import
__all__
# old pickles expect the _compile() reconstructor in this module
from
re
import
_compile
Lib/test/test_re.py
Dosyayı görüntüle @
cf3520c2
...
...
@@ -434,16 +434,6 @@ class ReTests(unittest.TestCase):
self
.
assertEqual
(
pat
.
match
(
p
)
is
not
None
,
True
)
self
.
assertEqual
(
pat
.
match
(
p
)
.
span
(),
(
0
,
256
))
def
test_pickling
(
self
):
import
pickle
self
.
pickle_test
(
pickle
)
# old pickles expect the _compile() reconstructor in sre module
import
warnings
with
catch_warning
():
warnings
.
filterwarnings
(
"ignore"
,
"The sre module is deprecated"
,
DeprecationWarning
)
from
sre
import
_compile
def
pickle_test
(
self
,
pickle
):
oldpat
=
re
.
compile
(
'a(?:b|(c|e){1,2}?|d)+?(.)'
)
s
=
pickle
.
dumps
(
oldpat
)
...
...
Misc/NEWS
Dosyayı görüntüle @
cf3520c2
...
...
@@ -21,6 +21,8 @@ Extension Modules
Library
-------
- The sre module has been removed.
- The PixMapWrapper module has been renamed to pixmapwrapper.
- The Queue module has been renamed to queue.
...
...
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