def flushErrors(*errorTypes):
 warnings.warn('log.flushErrors is deprecated since Twisted 2.5. If you need to flush errors from within a unittest, use TestCase.flushLoggedErrors instead.', category=DeprecationWarning, stacklevel=2)
 return _flushErrors(*errorTypes)

def flushErrors ( * errorTypes ) : warnings . warn ( 'log.flushErrors is deprecated since Twisted 2.5. If you need to flush errors from within a unittest, use TestCase.flushLoggedErrors instead.' , category = DeprecationWarning , stacklevel = 2 ) return _flushErrors ( * errorTypes )
deprecated in twisted 2 .