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

Unified Diff: ensure_dependencies.py

Issue 29756673: Noissue - Adapt best practices for trailing commas (buildtools) (Closed)
Patch Set: Re-run script on Python 2, added flake8-commas extension Created April 19, 2018, 2:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chainedconfigparser.py ('k') | localeTools.py » ('j') | tox.ini » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ensure_dependencies.py
===================================================================
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -41,7 +41,7 @@
'''
SKIP_DEPENDENCY_UPDATES = os.environ.get(
- 'SKIP_DEPENDENCY_UPDATES', ''
+ 'SKIP_DEPENDENCY_UPDATES', '',
).lower() not in ('', '0', 'false')
NPM_LOCKFILE = '.npm_install_lock'
@@ -147,13 +147,13 @@
# [vcs:]value
item_regexp = re.compile(
'^(?:(' + '|'.join(map(re.escape, repo_types.keys())) + '):)?'
- '(.+)$'
+ '(.+)$',
)
# [url@]rev
source_regexp = re.compile(
'^(?:(.*)@)?'
- '(.+)$'
+ '(.+)$',
)
« no previous file with comments | « chainedconfigparser.py ('k') | localeTools.py » ('j') | tox.ini » ('J')

Powered by Google App Engine
This is Rietveld