Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1015)

Issue 3107038: Adding json based tree open check. (Closed)

Created:
10 years, 4 months ago by bradn
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

Adding json based tree open check. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57438

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -19 lines) Patch
M presubmit_canned_checks.py View 1 2 3 1 chunk +32 lines, -10 lines 0 comments Download
M tests/presubmit_unittest.py View 1 2 3 chunks +45 lines, -9 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
bradn
10 years, 4 months ago (2010-08-25 22:48:36 UTC) #1
M-A Ruel
lgtm with optional nit http://codereview.chromium.org/3107038/diff/5001/6001 File presubmit_canned_checks.py (right): http://codereview.chromium.org/3107038/diff/5001/6001#newcode369 presubmit_canned_checks.py:369: try: you could something like: ...
10 years, 4 months ago (2010-08-26 00:18:54 UTC) #2
bradn
10 years, 4 months ago (2010-08-26 00:22:24 UTC) #3
http://codereview.chromium.org/3107038/diff/5001/6001
File presubmit_canned_checks.py (right):

http://codereview.chromium.org/3107038/diff/5001/6001#newcode369
presubmit_canned_checks.py:369: try:
On 2010/08/26 00:18:54, Marc-Antoine Ruel wrote:
> you could something like:
> connection = input_api.urllib2.urlopen(url or json_url)
> status = connection.read()
> connection.close()
> if json_url:
>   status = input_api.json.loads(status)
>   ...
> 
> ok that only saves 2 miserable line, feel free to ignore me.

I'm gonna keep it as I aspire to drop the old syntax once all downstream users
are switched. Added TODO.

Powered by Google App Engine
This is Rietveld 408576698