[Freeipa-devel] [PATCH 0398] logger: Use warning instead of warn

Martin Basti mbasti at redhat.com
Mon Jan 18 16:49:36 UTC 2016



On 15.01.2016 17:15, Tomas Babej wrote:
>
> On 01/15/2016 05:12 PM, Martin Basti wrote:
>>
>> On 15.01.2016 16:27, Tomas Babej wrote:
>>> Hi,
>>>
>>> this should build up to another pylint-related patch Martin^2 has in works.
>>>
>>> Tomas
>>>
>>>
>>>
>> NACK :)
>>
>> ************* Module ipalib.plugins.dns
>> ipalib/plugins/dns.py:3441: [E1101(no-member),
>> dnsrecord.wait_for_modified_attr] Class 'log' has no 'warn' member)
>>
> My regexp was too strict, it seems :)
>
> Updated patch attached.
ACK
log.warn() is deprecated
https://docs.python.org/3/library/logging.html#logging.Logger.warning




More information about the Freeipa-devel mailing list