Code Review
/
qtip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a72b8da
)
bugfix for grep
99/29199/2
author
wu.zhihui
<wu.zhihui1@zte.com.cn>
Wed, 22 Feb 2017 07:16:37 +0000
(15:16 +0800)
committer
wu.zhihui
<wu.zhihui1@zte.com.cn>
Wed, 22 Feb 2017 07:18:55 +0000
(15:18 +0800)
Change-Id: I1474a4e4f5884f17cbf3e6d62fae7e743921aae1
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
qtip/collector/parser/grep.py
patch
|
blob
|
history
diff --git
a/qtip/collector/parser/grep.py
b/qtip/collector/parser/grep.py
index
c3274bc
..
f74ce40
100644
(file)
--- a/
qtip/collector/parser/grep.py
+++ b/
qtip/collector/parser/grep.py
@@
-29,6
+29,6
@@
class GrepParser(BaseActor):
def grep_in_file(filename, regex):
- with open(filename,
"r") as outfile
:
+ with open(filename,
'r') as f
:
return filter(lambda x: x is not None,
-
list(re.finditer(regex, outfile.read(), re.MULTILINE)
))
+
re.finditer(regex, f.read(), re.MULTILINE
))