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

Unified Diff: tools/safely-roll-deps.py

Issue 524583002: Fix safely-roll-deps.py to use single quotes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/safely-roll-deps.py
diff --git a/tools/safely-roll-deps.py b/tools/safely-roll-deps.py
index e37fde43ee8342a280956f3f6bde912a1c1ff343..7c64aaee6cb0882212370c84c5fcdfd4a2ce89e3 100755
--- a/tools/safely-roll-deps.py
+++ b/tools/safely-roll-deps.py
@@ -33,8 +33,8 @@ def process_deps(path, project, new_rev, is_dry_run):
# Hack for Blink to get the AutoRollBot running again.
if project == "blink":
project = "webkit"
- old_line = r'(\s+)"%s_revision": "([0-9a-f]{2,40})",' % project
- new_line = r'\1"%s_revision": "%s",' % (project, new_rev)
+ old_line = r"(\s+)'%s_revision': '([0-9a-f]{2,40})'," % project
+ new_line = r"\1'%s_revision': '%s'," % (project, new_rev)
new_content = re.sub(old_line, new_line, content, 1)
old_rev = re.search(old_line, content).group(2)
if not old_rev or new_content == content:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698