

def match(self, node):
    if ((node.type in (token.COLON, token.COMMA, token.SEMI)) and (node.get_suffix() != ' ')):
        if ((node.get_suffix().find('\n') == 0) or (node.next_sibling and node.next_sibling.children and (node.next_sibling.children[0] == Newline()))):
            return False
        if (node.parent.type in [symbols.subscript, symbols.sliceop]):
            return False
        return True
    return False

dataset/ETHPy150Open spulec/pep8ify/pep8ify/fixes/fix_missing_whitespace.py FixMissingWhitespace.match/original