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
1622d82c
Kaydet (Commit)
1622d82c
authored
Mar 08, 2007
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF #1637850: make_table in difflib did not work with unicode
üst
590af0a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
difflib.py
Lib/difflib.py
+4
-5
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/difflib.py
Dosyayı görüntüle @
1622d82c
...
...
@@ -1945,8 +1945,7 @@ class HtmlDiff(object):
fromlist
,
tolist
,
flaglist
,
next_href
,
next_id
=
self
.
_convert_flags
(
fromlist
,
tolist
,
flaglist
,
context
,
numlines
)
import
cStringIO
s
=
cStringIO
.
StringIO
()
s
=
[]
fmt
=
' <tr><td class="diff_next"
%
s>
%
s</td>
%
s'
+
\
'<td class="diff_next">
%
s</td>
%
s</tr>
\n
'
for
i
in
range
(
len
(
flaglist
)):
...
...
@@ -1954,9 +1953,9 @@ class HtmlDiff(object):
# mdiff yields None on separator lines skip the bogus ones
# generated for the first line
if
i
>
0
:
s
.
write
(
' </tbody>
\n
<tbody>
\n
'
)
s
.
append
(
' </tbody>
\n
<tbody>
\n
'
)
else
:
s
.
write
(
fmt
%
(
next_id
[
i
],
next_href
[
i
],
fromlist
[
i
],
s
.
append
(
fmt
%
(
next_id
[
i
],
next_href
[
i
],
fromlist
[
i
],
next_href
[
i
],
tolist
[
i
]))
if
fromdesc
or
todesc
:
header_row
=
'<thead><tr>
%
s
%
s
%
s
%
s</tr></thead>'
%
(
...
...
@@ -1968,7 +1967,7 @@ class HtmlDiff(object):
header_row
=
''
table
=
self
.
_table_template
%
dict
(
data_rows
=
s
.
getvalue
(
),
data_rows
=
''
.
join
(
s
),
header_row
=
header_row
,
prefix
=
self
.
_prefix
[
1
])
...
...
Misc/NEWS
Dosyayı görüntüle @
1622d82c
...
...
@@ -197,6 +197,8 @@ Extension Modules
Library
-------
-
Bug
#
1637850
:
make_table
in
difflib
did
not
work
with
unicode
-
Bugs
#
1676321
:
the
empty
()
function
in
sched
.
py
returned
the
wrong
result
-
unittest
now
verifies
more
of
its
assumptions
.
In
particular
,
TestCase
...
...
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