Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d7d4d commit 8d17a90Copy full SHA for 8d17a90
1 file changed
Tools/scripts/combinerefs.py
@@ -74,13 +74,11 @@
74
# (when whilematch is false), is lost, and fileiter will resume at the line
75
# following it.
76
def read(fileiter, pat, whilematch):
77
- result = []
78
for line in fileiter:
79
if bool(pat.match(line)) == whilematch:
80
- result.append(line)
+ yield line
81
else:
82
break
83
- return result
84
85
def combine(fname):
86
f = file(fname)
0 commit comments