def setLoggerClass(klass):
    if klass != Logger:
        if not issubclass(klass, Logger):
            raise TypeError, "logger not derived from logging.Logger: " + \
                            klass.__name__
    global _loggerClass
    _loggerClass = klass
Test C{foo if bar else baz} statements.
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/logging/__init__.py/setLoggerClass--crossover with--dataset/ETHPy150Open kevinw/pyflakes/pyflakes/test/test_other.py/Python25Test.test_ifexp