Lines Matching +full:bom +full:- +full:path
1 # -*- coding: utf-8 -*-
3 #-------------------------------------------------------------------------
5 # --------------------------------------
13 # http://www.apache.org/licenses/LICENSE-2.0
21 #-------------------------------------------------------------------------
55 f.truncate(readpos-3)
57 def getFileList (path): argument
58 if os.path.isfile(path):
59 yield path
60 elif os.path.isdir(path):
61 for root, dirs, files in os.walk(path):
63 yield os.path.join(root, file)
71 print("File %s contained BOM and was fixed" % file)
74 print("File %s contains BOM" % file)
79 …parser.add_option("-x", "--fix", action="store_true", dest="fix", default=False, help="attempt to …
86 checkBOMs(getFileList(os.path.normpath(dir)), fix)