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
4cee810f
Kaydet (Commit)
4cee810f
authored
Kas 29, 2012
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
#16476: merge with 3.2.
üst
1e86d01e
b32512ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
tool.py
Lib/json/tool.py
+2
-1
test_tool.py
Lib/test/json_tests/test_tool.py
+8
-8
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/json/tool.py
Dosyayı görüntüle @
4cee810f
...
...
@@ -31,7 +31,8 @@ def main():
except
ValueError
as
e
:
raise
SystemExit
(
e
)
with
outfile
:
json
.
dump
(
obj
,
outfile
,
sort_keys
=
True
,
indent
=
4
)
json
.
dump
(
obj
,
outfile
,
sort_keys
=
True
,
indent
=
4
,
separators
=
(
','
,
': '
))
outfile
.
write
(
'
\n
'
)
...
...
Lib/test/json_tests/test_tool.py
Dosyayı görüntüle @
4cee810f
...
...
@@ -19,19 +19,19 @@ class TestTool(unittest.TestCase):
[
[
"blorpie"
],
],
[
"whoops"
],
[],
"d-shtaeou",
"d-nthiouh",
"i-vhbjkhnth",
],
[],
"d-shtaeou",
"d-nthiouh",
"i-vhbjkhnth",
{
"nifty": 87
},
},
{
"field": "yes",
"field": "yes",
"morefield": false
}
]
...
...
Misc/NEWS
Dosyayı görüntüle @
4cee810f
...
...
@@ -96,6 +96,8 @@ Core and Builtins
Library
-------
-
Issue
#
16476
:
Fix
json
.
tool
to
avoid
including
trailing
whitespace
.
-
Issue
#
16549
:
Make
json
.
tool
work
again
on
Python
3
and
add
tests
.
Initial
patch
by
Berker
Peksag
and
Serhiy
Storchaka
.
...
...
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