Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
 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
Beispiel #4
0
 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
Beispiel #6
0
 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
Beispiel #7
0
 def __init__(self, subcon, start, stop=None):
     Adapter.__init__(self, subcon)
     self.start = start
     self.stop = stop
Beispiel #8
0
 def __init__(self, subcon, linesize=16):
     Adapter.__init__(self, subcon)
     self.linesize = linesize
Beispiel #9
0
 def __init__(self, subcon, value):
     Adapter.__init__(self, subcon)
     self.value = value
Beispiel #10
0
 def __init__(self, subcon, inner_subcon):
     Adapter.__init__(self, subcon)
     self.inner_subcon = inner_subcon
Beispiel #11
0
 def __init__(self, subcon, encoder, decoder):
     Adapter.__init__(self, subcon)
     self._encode = encoder
     self._decode = decoder
Beispiel #12
0
 def __init__(self, subcon, encoder, decoder):
     Adapter.__init__(self, subcon)
     self._encode = encoder
     self._decode = decoder
Beispiel #13
0
 def __init__(self, subcon, encoding=None):
     Adapter.__init__(self, subcon)
     self.encoding = encoding
Beispiel #14
0
 def __init__(self, subcon, pattern = "\x00", strict = False):
     Adapter.__init__(self, subcon)
     self.pattern = pattern
     self.strict = strict
Beispiel #15
0
 def __init__(self, subcon, flags):
     Adapter.__init__(self, subcon)
     self.flags = flags
Beispiel #16
0
 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
Beispiel #17
0
 def __init__(self, subcon, encoding = None):
     Adapter.__init__(self, subcon)
     self.encoding = encoding
Beispiel #18
0
 def __init__(self, subcon, start, stop = None):
     Adapter.__init__(self, subcon)
     self.start = start
     self.stop = stop
Beispiel #19
0
 def __init__(self, subcon, value):
     Adapter.__init__(self, subcon)
     self.value = value
Beispiel #20
0
 def __init__(self, subcon, linesize = 16):
     Adapter.__init__(self, subcon)
     self.linesize = linesize
Beispiel #21
0
 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
Beispiel #22
0
 def __init__(self, subcon, flags):
     Adapter.__init__(self, subcon)
     self.flags = flags
Beispiel #23
0
 def __init__(self, subcon, pattern="\x00", strict=False):
     Adapter.__init__(self, subcon)
     self.pattern = pattern
     self.strict = strict
Beispiel #24
0
 def __init__(self, subcon, inner_subcon):
     Adapter.__init__(self, subcon)
     self.inner_subcon = inner_subcon