

def _get_list_value_for_modification(self, key):
    'Gets a value that must be a list for further modification.  The\n\t\tlist may be modified inplace and there is no need to\n\t\t"self.table[var] = value" afterwards.\n\t\t'
    try:
        value = key.table[key]
    except KeyError:
        try:
            value = self.parent[key]
        except AttributeError:
            value = []
        if isinstance(value, list):
            value = value[:]
        else:
            value = [value]
    else:
        if (not isinstance(value, list)):
            value = [value]
    self.table[key] = value
    return value

dataset/ETHPy150Open appcelerator-archive/poc-nodejs-desktop/Resources/nodejs/builds/linux/node/lib/node/wafadmin/Environment.py Environment._get_list_value_for_modification/VarMisuse@20/108 `self`->`key`