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: Updated path in updateRules.py as well Created March 7, 2016, 8:23 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
« lib/typoNetError.js ('K') | « 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)
« lib/typoNetError.js ('K') | « lib/typoRules.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld