Skip to content

Commit

Permalink
Use pickle instead of json for builds manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Griffin committed Nov 19, 2011
1 parent 34a1c91 commit a5fa188
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pulsebuildmonitor/pulsebuildmonitor.py
Expand Up @@ -35,6 +35,7 @@
#
# ***** END LICENSE BLOCK *****

import cPickle
import datetime
import httplib
import os
Expand Down Expand Up @@ -95,7 +96,7 @@ def _write_manifest(self, builds):

try:
f = open(self.manifest, 'w')
f.write(json.dumps(list(builds), indent=2))
f.write(cPickle.dumps(list(builds), indent=2))
f.close()
except Exception, inst:
# XXX: should log error
Expand All @@ -114,7 +115,7 @@ def _read_manifest(self):
try:
if os.access(self.manifest, os.F_OK):
f = open(self.manifest, 'r')
buildlist = json.loads(f.read())
buildlist = cPickle.loads(f.read())
for build in buildlist:
builds.add(tuple(build))
f.close()
Expand Down

0 comments on commit a5fa188

Please sign in to comment.