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

Unified Diff: updateRules.py

Issue 29337915: Issue 3748 - Update URL Fixer dependency on buildtools to revision c92cc4e4a338 and make it E10S-co… (Closed)
Patch Set: Even more bracket style adjustments Created March 14, 2016, 2:19 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 | « lib/typoRules.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: updateRules.py
===================================================================
old mode 100644
new mode 100755
--- a/updateRules.py
+++ b/updateRules.py
@@ -255,17 +255,17 @@ def updateDomains(rules):
# Fill up with "official" TLDs
getTLDs(domains, -maxPriority)
rules['domain'] = {}
getSuffixes(rules['domain'], domains)
def writeRules(rules):
- path = os.path.join('defaults', 'typoRules.json')
+ path = os.path.join('chrome', 'content', 'typoRules.json')
file = codecs.open(path, 'rb', encoding='utf-8')
data = file.read()
file.close()
marker = '// Automatically generated dictionaries'
markerIndex = data.find(marker)
if markerIndex < 0:
raise Exception('Insertion marker not found in %s' % path)
« no previous file with comments | « lib/typoRules.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld