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

Issue 4360002: Largely reduce the number of pylint warnings and fix one typo. (Closed)

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

Description

Largely reduce the number of pylint warnings and fix one typo. Most of them are style issues or variable aliasing. TEST=Can almost enable pylint warnings BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64908

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -75 lines) Patch
M breakpad.py View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome-update.py View 2 chunks +6 lines, -6 lines 0 comments Download
M drover.py View 1 chunk +1 line, -1 line 0 comments Download
M gcl.py View 1 chunk +1 line, -1 line 0 comments Download
M gclient.py View 1 chunk +3 lines, -4 lines 0 comments Download
M gclient_scm.py View 1 chunk +0 lines, -1 line 0 comments Download
M gclient_utils.py View 4 chunks +4 lines, -4 lines 0 comments Download
M git-try View 1 chunk +1 line, -1 line 0 comments Download
M git_cl_hooks.py View 2 chunks +4 lines, -5 lines 0 comments Download
M presubmit_canned_checks.py View 2 chunks +3 lines, -3 lines 0 comments Download
M presubmit_support.py View 1 13 chunks +34 lines, -29 lines 0 comments Download
M pylintrc View 2 chunks +5 lines, -1 line 0 comments Download
M tests/gclient_scm_test.py View 2 chunks +5 lines, -4 lines 0 comments Download
M tests/gclient_utils_test.py View 1 chunk +1 line, -1 line 0 comments Download
M tests/presubmit_unittest.py View 3 chunks +4 lines, -5 lines 0 comments Download
M trychange.py View 1 3 chunks +4 lines, -5 lines 0 comments Download
M watchlists.py View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
M-A Ruel
10 years, 1 month ago (2010-11-03 13:28:00 UTC) #1
jochen (gone - plz use gerrit)
lgtm http://codereview.chromium.org/4360002/diff/1/2 File breakpad.py (right): http://codereview.chromium.org/4360002/diff/1/2#newcode49 breakpad.py:49: print '\n'.join(' %s: %s' % (k, v[0:50]) for ...
10 years, 1 month ago (2010-11-03 13:39:04 UTC) #2
M-A Ruel
10 years, 1 month ago (2010-11-03 14:07:33 UTC) #3
http://codereview.chromium.org/4360002/diff/1/2
File breakpad.py (right):

http://codereview.chromium.org/4360002/diff/1/2#newcode49
breakpad.py:49: print '\n'.join('  %s: %s' % (k, v[0:50]) for k, v in
params.iteritems())
On 2010/11/03 13:39:04, jochen wrote:
> what's the rule for using print (...) vs print ...?

print() is python3 compatible so occasionally I fix those when I think about it.
In a year or so I'll probably start making it more compliant.

Powered by Google App Engine
This is Rietveld 408576698