@contextlib.contextmanager
def save_pos(fh):
    orig_pos = fh.tell()
    fh.seek(0)
    try:
        yield fh
    finally:
        fh.seek(orig_pos)
Wrap internal self.stream.isatty.
dataset/ETHPy150Open jseutter/ofxparse/ofxparse/ofxparse.py/save_pos--crossover with--dataset/ETHPy150Open CleanCut/green/green/output.py/GreenStream.isatty