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
6f7c3431
Kaydet (Commit)
6f7c3431
authored
Haz 27, 2002
tarafından
Fredrik Lundh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix bug #570057: Broken pre.subn() (and pre.sub())
This should be backported to the 2.2.X series (how do I do that?)
üst
1add023b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
pre.py
Lib/pre.py
+4
-2
No files found.
Lib/pre.py
Dosyayı görüntüle @
6f7c3431
...
...
@@ -367,10 +367,12 @@ class RegexObject:
end
=
len
(
source
)
if
type
(
repl
)
is
type
(
''
):
# See if repl contains group references
# See if repl contains group references (if it does,
# pcre_expand will attempt to call _Dummy.group, which
# results in a TypeError)
try
:
repl
=
pcre_expand
(
_Dummy
,
repl
)
except
error
:
except
(
error
,
TypeError
)
:
m
=
MatchObject
(
self
,
source
,
0
,
end
,
[])
repl
=
lambda
m
,
repl
=
repl
,
expand
=
pcre_expand
:
expand
(
m
,
repl
)
else
:
...
...
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