diff options
-rw-r--r-- | extra/cdx/cdx_reshape.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/cdx/cdx_reshape.py b/extra/cdx/cdx_reshape.py index 4e96134..6b3d6e5 100644 --- a/extra/cdx/cdx_reshape.py +++ b/extra/cdx/cdx_reshape.py @@ -15,5 +15,5 @@ for line in fileinput.input(): by_url[doc["line"]] = doc -for k, v in sorted(by_url): - print("{}\t{}".format(k, v)) +for k, v in sorted(by_url.items()): + print("{}\t{}".format(k, json.dumps(v))) |