(fileiter, pat, whilematch)
| 79 | # (when whilematch is false), is lost, and fileiter will resume at the line |
| 80 | # following it. |
| 81 | def read(fileiter, pat, whilematch): |
| 82 | for line in fileiter: |
| 83 | if bool(pat.match(line)) == whilematch: |
| 84 | yield line |
| 85 | else: |
| 86 | break |
| 87 | |
| 88 | def combinefile(f): |
| 89 | fi = iter(f) |
no test coverage detected
searching dependent graphs…