def __init__(self, subcon, decoding, encoding, decdefault = NotImplemented, encdefault = NotImplemented): Adapter.__init__(self, subcon) self.decoding = decoding self.encoding = encoding self.decdefault = decdefault self.encdefault = encdefault
def __init__(self, subcon, width, swapped = False, signed = False, bytesize = 8): Adapter.__init__(self, subcon) self.width = width self.swapped = swapped self.signed = signed self.bytesize = bytesize
def __init__(self, subcon, padchar="\x00", paddir="right", trimdir="right"): if paddir not in ("right", "left", "center"): raise ValueError("paddir must be 'right', 'left' or 'center'", paddir) if trimdir not in ("right", "left"): raise ValueError("trimdir must be 'right' or 'left'", trimdir) Adapter.__init__(self, subcon) self.padchar = padchar self.paddir = paddir self.trimdir = trimdir
def __init__(self, subcon, padchar = "\x00", paddir = "right", trimdir = "right"): if paddir not in ("right", "left", "center"): raise ValueError("paddir must be 'right', 'left' or 'center'", paddir) if trimdir not in ("right", "left"): raise ValueError("trimdir must be 'right' or 'left'", trimdir) Adapter.__init__(self, subcon) self.padchar = padchar self.paddir = paddir self.trimdir = trimdir
def __init__(self, subcon, start, stop=None): Adapter.__init__(self, subcon) self.start = start self.stop = stop
def __init__(self, subcon, linesize=16): Adapter.__init__(self, subcon) self.linesize = linesize
def __init__(self, subcon, value): Adapter.__init__(self, subcon) self.value = value
def __init__(self, subcon, inner_subcon): Adapter.__init__(self, subcon) self.inner_subcon = inner_subcon
def __init__(self, subcon, encoder, decoder): Adapter.__init__(self, subcon) self._encode = encoder self._decode = decoder
def __init__(self, subcon, encoding=None): Adapter.__init__(self, subcon) self.encoding = encoding
def __init__(self, subcon, pattern = "\x00", strict = False): Adapter.__init__(self, subcon) self.pattern = pattern self.strict = strict
def __init__(self, subcon, flags): Adapter.__init__(self, subcon) self.flags = flags
def __init__(self, subcon, index): Adapter.__init__(self, subcon) if type(index) is not int: raise TypeError("index must be an integer", type(index)) self.index = index
def __init__(self, subcon, encoding = None): Adapter.__init__(self, subcon) self.encoding = encoding
def __init__(self, subcon, start, stop = None): Adapter.__init__(self, subcon) self.start = start self.stop = stop
def __init__(self, subcon, linesize = 16): Adapter.__init__(self, subcon) self.linesize = linesize
def __init__(self, subcon, pattern="\x00", strict=False): Adapter.__init__(self, subcon) self.pattern = pattern self.strict = strict