@contextmanager
  def TempAttr(self, name, value):
    old_value = getattr(self, name)
    setattr(self, name, value)
    yield
    setattr(self, name, old_value)
Shared implementation of read() and readline().
dataset/ETHPy150Open google/rfmt/formatter/default_format_policy.py/DefaultFormatPolicy.TempAttr--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/io/gcsio.py/GcsBufferedReader._read_inner