1 from builtins
import range
3 __date__ =
"$Jul 12, 2010 10:08:20 AM$"
8 def finds(fileList, regularExpression, exceptRegEx = []):
12 for i
in range(len(fileList)):
13 if type(fileList[0]).__name__ !=
'tuple':
15 lines =
find(fileList[i], regularExpression, exceptRegEx)
18 lines =
find(fileList[i][1], regularExpression, exceptRegEx)
21 info.append((file, lines))
27 def find(file, regularExpression, exceptRegEx = []):
30 if type(file).__name__ !=
'list':
31 fileLines = open(file).readlines()
32 else: fileLines = file
33 for i
in range(len(fileLines)):
34 matchException =
False
35 if re.search(regularExpression, fileLines[i]) !=
None:
36 for regEx
in exceptRegEx:
37 if re.search(regEx, fileLines[i]) !=
None:
40 if not matchException:
const uint16_t range(const Frame &aFrame)