Skip to content

Commit

Permalink
Fix PRESUBMIT.py when simplejson is present.
Browse files Browse the repository at this point in the history
TBR=nsylvain
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/380005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31477 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
maruel@chromium.org committed Nov 9, 2009
1 parent bfab136 commit 9d660ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def CheckPendingBuilds(input_api, output_api, url, max_pendings, ignored):
connection.close()
try:
import simplejson
data = simplejson.parse(raw_data)
data = simplejson.loads(raw_data)
except ImportError:
# simplejson is much safer. But we should be just fine enough with that:
data = eval(raw_data.replace('null', 'None'))
Expand Down

0 comments on commit 9d660ad

Please sign in to comment.