def __init__(self, filename, content_generator=None, content_length=None):
    self.filename = filename
    self.content_length = content_length

    if content_generator is None:
      raise ValueError("content_generator can't be None")
    self.content_generator = content_generator
ApiBinaryStream constructor.
dataset/ETHPy150Open google/grr/grr/gui/api_call_handler_base.py/ApiBinaryStream.__init__