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
295f4fa1
Kaydet (Commit)
295f4fa1
authored
Şub 29, 2008
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
I forgot to start the unit test suite first.
üst
f16baebf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
decimal.py
Lib/decimal.py
+1
-5
No files found.
Lib/decimal.py
Dosyayı görüntüle @
295f4fa1
...
@@ -5441,7 +5441,7 @@ def _parse_format_specifier(format_spec):
...
@@ -5441,7 +5441,7 @@ def _parse_format_specifier(format_spec):
format_dict
[
'precision'
]
=
1
format_dict
[
'precision'
]
=
1
# record whether return type should be str or unicode
# record whether return type should be str or unicode
format_dict
[
'unicode'
]
=
isinstance
(
format_spec
,
unicode
)
format_dict
[
'unicode'
]
=
True
return
format_dict
return
format_dict
...
@@ -5486,10 +5486,6 @@ def _format_align(body, spec_dict):
...
@@ -5486,10 +5486,6 @@ def _format_align(body, spec_dict):
half
=
len
(
padding
)
//
2
half
=
len
(
padding
)
//
2
result
=
padding
[:
half
]
+
sign
+
body
+
padding
[
half
:]
result
=
padding
[:
half
]
+
sign
+
body
+
padding
[
half
:]
# make sure that result is unicode if necessary
if
spec_dict
[
'unicode'
]:
result
=
unicode
(
result
)
return
result
return
result
##### Useful Constants (internal use only) ################################
##### Useful Constants (internal use only) ################################
...
...
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