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

Martin Basti mbasti at redhat.com
Mon Jan 18 16:50:42 UTC 2016



On 18.01.2016 17:49, Martin Basti wrote:
>
>
> 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
>
Pushed to master: 78c5bf9f8e85b4c6c9b67b4a26acedfd45a2c86f




More information about the Freeipa-devel mailing list