ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject incubator-ponymail git commit: fix arg order, indent
Date Wed, 03 Jan 2018 00:37:47 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master d0c353d84 -> 593029a78


fix arg order, indent

file path needs to be second.
also indent so we can read the doc


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/593029a7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/593029a7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/593029a7

Branch: refs/heads/master
Commit: 593029a7805afe584b91cabf7c403c2fdb119b6a
Parents: d0c353d
Author: Daniel Gruno <humbedooh@apache.org>
Authored: Wed Jan 3 01:37:37 2018 +0100
Committer: Daniel Gruno <humbedooh@apache.org>
Committed: Wed Jan 3 01:37:37 2018 +0100

----------------------------------------------------------------------
 tools/archiver.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/593029a7/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index d4a82e0..85bdfd3 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -448,14 +448,14 @@ class Archiver(object):
                 uid = uuid.uuid4()
                 mboxPath = os.path.join(dumpDir, "%s.json" % uid)
                 with open(mboxPath, "w") as f:
-                    json.dump(f, {
+                    json.dump({
                         'mbox': ojson,
                         'mbox_source': {
                             "message-id": msg_metadata['message-id'],
                             "source": self.mbox_source(raw_msg)
                         },
                         'attachments': contents
-                    })
+                    },f , indent = 2)
                     f.close()
                 sys.exit(0) # We're exiting here, the rest can't be done without ES
                 


Mime
View raw message