

def match(self, node):
    match = super(FixImports, self).match
    results = match(node)
    if results:
        if (('bare_with_attr' not in results) and any((match(obj) for obj in attr_chain(node, 'parent')))):
            return False
        return results
    return False

dataset/ETHPy150Open PythonCharmers/python-future/src/libfuturize/fixes/fix_UserDict.py FixUserdict.match/original