

def read(self, wkb):
    'Returns a _pointer_ to C GEOS Geometry object from the given WKB.'
    if isinstance(wkb, six.memoryview):
        wkb_s = bytes(wkb)
        return wkb_reader_read(self.ptr, wkb_s, len(wkb_s))
    elif isinstance(wkb, (bytes, six.string_types)):
        return wkb_reader_read_hex(self.ptr, wkb, len(wkb))
    else:
        raise TypeError

dataset/ETHPy150Open django/django/django/contrib/gis/geos/prototypes/io.py _WKBReader.read/original