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

Side by Side Diff: localeTools.py

Issue 29345187: Noissue - Got rid of non-defualt script encodings in buildtools (Closed)
Patch Set: Created May 28, 2016, 12:23 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ensure_dependencies.py ('k') | packager.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # coding: utf-8
2
3 # This Source Code Form is subject to the terms of the Mozilla Public 1 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 4
7 import re 5 import re
8 import os 6 import os
9 import sys 7 import sys
10 import codecs 8 import codecs
11 import json 9 import json
12 import urllib 10 import urllib
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 482
485 # Remove any extra files 483 # Remove any extra files
486 for dir, files in dirs.iteritems(): 484 for dir, files in dirs.iteritems():
487 baseDir = os.path.join(localeConfig['base_path'], dir) 485 baseDir = os.path.join(localeConfig['base_path'], dir)
488 if not os.path.exists(baseDir): 486 if not os.path.exists(baseDir):
489 continue 487 continue
490 for file in os.listdir(baseDir): 488 for file in os.listdir(baseDir):
491 path = os.path.join(baseDir, file) 489 path = os.path.join(baseDir, file)
492 if os.path.isfile(path) and (file.endswith('.json') or file.endswith ('.properties') or file.endswith('.dtd')) and not file in files: 490 if os.path.isfile(path) and (file.endswith('.json') or file.endswith ('.properties') or file.endswith('.dtd')) and not file in files:
493 os.remove(path) 491 os.remove(path)
OLDNEW
« no previous file with comments | « ensure_dependencies.py ('k') | packager.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld