Lines Matching refs:file
10 # you may not use this file except in compliance with the License.
32 def hasBOM (file):
33 with open(file, 'rb') as f:
39 def removeBOM (file):
40 with open(file, 'r+b') as f:
62 for file in files:
63 yield os.path.join(root, file)
67 for file in files:
68 if hasBOM(file):
70 removeBOM(file)
71 print("File %s contained BOM and was fixed" % file)
74 print("File %s contains BOM" % file)