def __init__(self, **attr): Use.__init__(self, **attr) if attr.has_key('dh'): self.dh = attr['dh'] else: self.dh = 0 if attr.has_key('dv'): self.dv = attr['dv'] else: self.dv = 0
def __init__ (self, **attr): Use.__init__ (self, **attr) if attr.has_key ('dh'): self.dh = attr['dh'] else: self.dh = 0 if attr.has_key ('dv'): self.dv = attr['dv'] else: self.dv = 0