Lines Matching defs:path
17 def IsUninteresting(path):
18 path = path.lower()
19 if path.endswith(".mk") or path.endswith(".py") or path.endswith(".pyc") or path.endswith(".txt") or path.endswith(".3"):
21 if path.endswith("/notice") or path.endswith("/readme") or path.endswith("/caveats"):
23 if path.endswith("/tzdata") or path.endswith("/zoneinfo/generate"):
116 path = os.path.join(directory, filename)
117 if IsUninteresting(path):
118 #print "ignoring uninteresting file %s" % path
122 content = open(path, 'r').read().decode('utf-8')
124 sys.stderr.write('warning: bad UTF-8 in %s\n' % path)
125 content = open(path, 'r').read().decode('iso-8859-1')
130 #print "ignoring short file %s" % path
134 #print "ignoring auto-generated file %s" % path
139 #print "ignoring public domain file %s" % path
141 sys.stderr.write('warning: no copyright notice found in "%s" (%d lines)\n' % (path, len(lines)))
150 #print path