equal
deleted
inserted
replaced
332 if buf: |
332 if buf: |
333 yield ''.join(buf) |
333 yield ''.join(buf) |
334 |
334 |
335 class Abort(Exception): |
335 class Abort(Exception): |
336 """Raised if a command needs to print an error and exit.""" |
336 """Raised if a command needs to print an error and exit.""" |
337 |
|
338 class UnexpectedOutput(Abort): |
|
339 """Raised to print an error with part of output and exit.""" |
|
340 |
337 |
341 def always(fn): return True |
338 def always(fn): return True |
342 def never(fn): return False |
339 def never(fn): return False |
343 |
340 |
344 def expand_glob(pats): |
341 def expand_glob(pats): |