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
25fcd392
Kaydet (Commit)
25fcd392
authored
Tem 11, 2010
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #8974: fix print calls in msgfmt.py.
üst
8e0c9968
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
NEWS
Misc/NEWS
+1
-1
msgfmt.py
Tools/i18n/msgfmt.py
+2
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
25fcd392
...
...
@@ -1773,7 +1773,7 @@ Tests
Tools/Demos
-----------
- Issue #5464: Implement plural forms in msgfmt.py.
- Issue #5464
, #8974
: Implement plural forms in msgfmt.py.
- iobench (a file I/O benchmark) and ccbench (a concurrency benchmark) were
added to the `Tools/` directory. They were previously living in the
...
...
Tools/i18n/msgfmt.py
Dosyayı görüntüle @
25fcd392
...
...
@@ -165,7 +165,7 @@ def make(filename, outfile):
section
=
STR
if
l
.
startswith
(
'msgstr['
):
if
not
is_plural
:
print
(
sys
.
stderr
,
'plural without msgid_plural on
%
s:
%
d'
%
(
infile
,
lno
),
print
(
'plural without msgid_plural on
%
s:
%
d'
%
(
infile
,
lno
),
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
l
=
l
.
split
(
']'
,
1
)[
1
]
...
...
@@ -173,7 +173,7 @@ def make(filename, outfile):
msgstr
+=
b
'
\0
'
# Separator of the various plural forms
else
:
if
is_plural
:
print
(
sys
.
stderr
,
'indexed msgstr required for plural on
%
s:
%
d'
%
(
infile
,
lno
),
print
(
'indexed msgstr required for plural on
%
s:
%
d'
%
(
infile
,
lno
),
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
l
=
l
[
6
:]
...
...
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