(logical_line)
Disallow 'LOG.warn('

    Deprecated LOG.warn(), instead use LOG.warning
    https://bugs.launchpad.net/magnum/+bug/1508442

    M352
Disallow 'LOG.warn('
Disallow LOG . warn (
def no_log_warn(logical_line):
    """Disallow 'LOG.warn('

    Deprecated LOG.warn(), instead use LOG.warning
    https://bugs.launchpad.net/magnum/+bug/1508442

    M352
    """

    msg = ("M352: LOG.warn is deprecated, please use LOG.warning!")
    if "LOG.warn(" in logical_line:
        yield (0, msg)
def no_log_warn ( logical_line ) : msg = ( "M352: LOG.warn is deprecated, please use LOG.warning!" ) if "LOG.warn(" in logical_line : yield ( 0 , msg )