Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29350281: Issue 4047 - Improved configuration of converted JS files (Closed)

Created:
Aug. 29, 2016, 9:26 a.m. by Sebastian Noack
Modified:
Aug. 31, 2016, 8:45 a.m.
Reviewers:
Vasily Kuznetsov
CC:
kzar
Visibility:
Public.

Description

Issue 4047 - Improved configuration of converted JS files

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Avoid error if input arguments seens before input files #

Patch Set 3 : Use defaultdict #

Total comments: 2

Patch Set 4 : Use defaultdict(list) instead lambda #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -18 lines) Patch
M packagerChrome.py View 1 2 3 2 chunks +17 lines, -18 lines 0 comments Download

Messages

Total messages: 8
Sebastian Noack
Aug. 29, 2016, 9:27 a.m. (2016-08-29 09:27:40 UTC) #1
Vasily Kuznetsov
LAGTM. Just one suggestion to improve error reporting (see below). https://codereview.adblockplus.org/29350281/diff/29350284/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29350281/diff/29350284/packagerChrome.py#newcode155 ...
Aug. 29, 2016, 4:56 p.m. (2016-08-29 16:56:40 UTC) #2
Sebastian Noack
https://codereview.adblockplus.org/29350281/diff/29350284/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29350281/diff/29350284/packagerChrome.py#newcode155 packagerChrome.py:155: output_files[filename][2].append('{}={}'.format(arg, item[1])) On 2016/08/29 16:56:40, Vasily Kuznetsov wrote: > ...
Aug. 30, 2016, 12:40 p.m. (2016-08-30 12:40:31 UTC) #3
Vasily Kuznetsov
LGTM. Feel free to implement the suggestion about `defaultdict` below if you agree with it. ...
Aug. 30, 2016, 1:30 p.m. (2016-08-30 13:30:18 UTC) #4
Sebastian Noack
https://codereview.adblockplus.org/29350281/diff/29350284/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29350281/diff/29350284/packagerChrome.py#newcode155 packagerChrome.py:155: output_files[filename][2].append('{}={}'.format(arg, item[1])) On 2016/08/30 13:30:18, Vasily Kuznetsov wrote: > ...
Aug. 30, 2016, 2:06 p.m. (2016-08-30 14:06:50 UTC) #5
Vasily Kuznetsov
https://codereview.adblockplus.org/29350281/diff/29350347/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29350281/diff/29350347/packagerChrome.py#newcode150 packagerChrome.py:150: args = collections.defaultdict(lambda: []) This could be `collections.defaultdict(list)`.
Aug. 30, 2016, 2:13 p.m. (2016-08-30 14:13:52 UTC) #6
Sebastian Noack
https://codereview.adblockplus.org/29350281/diff/29350347/packagerChrome.py File packagerChrome.py (right): https://codereview.adblockplus.org/29350281/diff/29350347/packagerChrome.py#newcode150 packagerChrome.py:150: args = collections.defaultdict(lambda: []) On 2016/08/30 14:13:52, Vasily Kuznetsov ...
Aug. 30, 2016, 2:23 p.m. (2016-08-30 14:23:06 UTC) #7
Vasily Kuznetsov
Aug. 30, 2016, 2:32 p.m. (2016-08-30 14:32:33 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld