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