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

Issue 12021013: Fix pylint presubmit check so that it works on Windows. (Closed)

Created:
7 years, 11 months ago by chrisha
Modified:
7 years, 11 months ago
Reviewers:
Isaac (away), M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Fix pylint presubmit check so that it works on Windows. r176777 introduced a change that relied on os.path.samepath, which does not exist on Windows. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=177701

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Used maruel's suggested implementation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M presubmit_canned_checks.py View 1 2 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
chrisha
PTAL.
7 years, 11 months ago (2013-01-18 15:50:13 UTC) #1
M-A Ruel
Use same file if available
7 years, 11 months ago (2013-01-18 15:57:03 UTC) #2
chrisha
On 2013/01/18 15:57:03, Marc-Antoine Ruel wrote: > Use same file if available Done. PTAL.
7 years, 11 months ago (2013-01-18 16:11:15 UTC) #3
M-A Ruel
https://codereview.chromium.org/12021013/diff/4001/presubmit_canned_checks.py File presubmit_canned_checks.py (right): https://codereview.chromium.org/12021013/diff/4001/presubmit_canned_checks.py#newcode646 presubmit_canned_checks.py:646: if hasattr(input_api.os_path, 'samefile'): Actually, it could be written shorter ...
7 years, 11 months ago (2013-01-18 16:31:46 UTC) #4
chrisha
PTAL? https://codereview.chromium.org/12021013/diff/4001/presubmit_canned_checks.py File presubmit_canned_checks.py (right): https://codereview.chromium.org/12021013/diff/4001/presubmit_canned_checks.py#newcode646 presubmit_canned_checks.py:646: if hasattr(input_api.os_path, 'samefile'): On 2013/01/18 16:31:46, Marc-Antoine Ruel ...
7 years, 11 months ago (2013-01-18 16:52:11 UTC) #5
M-A Ruel
lgtm, thanks.
7 years, 11 months ago (2013-01-18 16:58:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrisha@chromium.org/12021013/1002
7 years, 11 months ago (2013-01-18 17:44:11 UTC) #7
commit-bot: I haz the power
Change committed as 177701
7 years, 11 months ago (2013-01-18 17:46:58 UTC) #8
Isaac (away)
7 years, 11 months ago (2013-01-18 19:02:05 UTC) #9
Message was sent while issue was closed.
lgtm

Lgtm, thanks.

Powered by Google App Engine
This is Rietveld 408576698