

def __init__(self, cfg):
    self.iConfiguration = cfg.iConfiguration
    self.maxPower = (cfg.bMaxPower << 1)
    self.remoteWakeup = ((cfg.bmAttributes >> 5) & 1)
    g.selfPowered = ((cfg.bmAttributes >> 6) & 1)
    self.totalLength = cfg.wTotalLength
    self.value = cfg.bConfigurationValue
    self.interfaces = [list(g) for (k, g) in groupby(sorted([Interface(i) for i in cfg], key=(lambda i: i.interfaceNumber)), (lambda i: i.alternateSetting))]

dataset/ETHPy150Open walac/pyusb/usb/legacy.py Configuration.__init__/VarMisuse@48/59 `self`->`g`