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
e5df857c
Kaydet (Commit)
e5df857c
authored
Mar 21, 2007
tarafından
Žiga Seilnacht
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1675967: re patterns pickled with older Python versions can
now be unpickled. (backport form rev. 54492)
üst
7ed0a658
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
sre.py
Lib/sre.py
+3
-0
test_re.py
Lib/test/test_re.py
+9
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/sre.py
Dosyayı görüntüle @
e5df857c
...
@@ -8,3 +8,6 @@ warnings.warn("The sre module is deprecated, please import re.",
...
@@ -8,3 +8,6 @@ warnings.warn("The sre module is deprecated, please import re.",
from
re
import
*
from
re
import
*
from
re
import
__all__
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 @
e5df857c
...
@@ -414,6 +414,15 @@ class ReTests(unittest.TestCase):
...
@@ -414,6 +414,15 @@ class ReTests(unittest.TestCase):
self
.
pickle_test
(
pickle
)
self
.
pickle_test
(
pickle
)
import
cPickle
import
cPickle
self
.
pickle_test
(
cPickle
)
self
.
pickle_test
(
cPickle
)
# old pickles expect the _compile() reconstructor in sre module
import
warnings
original_filters
=
warnings
.
filters
[:]
try
:
warnings
.
filterwarnings
(
"ignore"
,
"The sre module is deprecated"
,
DeprecationWarning
)
from
sre
import
_compile
finally
:
warnings
.
filters
=
original_filters
def
pickle_test
(
self
,
pickle
):
def
pickle_test
(
self
,
pickle
):
oldpat
=
re
.
compile
(
'a(?:b|(c|e){1,2}?|d)+?(.)'
)
oldpat
=
re
.
compile
(
'a(?:b|(c|e){1,2}?|d)+?(.)'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
e5df857c
...
@@ -217,6 +217,9 @@ Extension Modules
...
@@ -217,6 +217,9 @@ Extension Modules
Library
Library
-------
-------
- Bug #1675967: re patterns pickled with Python 2.4 and earlier can
now be unpickled with Python 2.5.
- Bug #1684254: webbrowser now uses shlex to split any command lines
- Bug #1684254: webbrowser now uses shlex to split any command lines
given to get(). It also detects when you use '
&
' as the last argument
given to get(). It also detects when you use '
&
' as the last argument
and creates a BackgroundBrowser then.
and creates a BackgroundBrowser then.
...
...
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