parameters: (f)
docstring: r"""
      >>> import io
      >>> read_uint1(io.BytesIO(b'\xff'))
      255
docstring_summary: r"""
      >>> import io
      >>> read_uint1(io.BytesIO(b'\xff'))
      255
docstring_tokens: r >>> import io >>> read_uint1 ( io . BytesIO ( b \ xff )) 255
function: def read_uint1(f):
      r"""
      >>> import io
      >>> read_uint1(io.BytesIO(b'\xff'))
      255
      """
  
      data = f.read(1)
      if data:
          return data[0]
      raise ValueError("not enough data in stream to read uint1")
function_tokens: def read_uint1 ( f ) : data = f . read ( 1 ) if data : return data [ 0 ] raise ValueError ( "not enough data in stream to read uint1" )