'Checks for custom escaping calls, rather than using a standard escaping
method.
Arguments:
file_contents: The contents of the Python file
results: A list of results into which violations will be added.'

def _check_custom_escape(self, file_contents, results):

    for match in re.finditer('(<.*&lt;|&lt;.*<)', file_contents):
        expression = Expression(match.start(), match.end())
        results.violations.append(ExpressionRuleViolation(Rules.python_custom_escape, expression))
