

def getLintChecker(self):
    checker = lint.getDefaultChecker()
    checker.allowedClasses = checker.allowedClasses.copy()
    oldDiv = checker.allowedClasses['div']
    oldSpan = checker.allowedClasses['span']
    checker.allowedClasses['div'] = (lambda x: (oldDiv(x) or (x == 'latexmacros')))
    checker.allowedClasses['span'] = (lambda x: (oldSpan(x) or (x == 'latexformula')))
    return checker

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/lore/lmath.py ProcessingFunctionFactory.getLintChecker/original