health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health] DeprecationWarning: With-statements now directly support mu


From: Craig Barnes
Subject: Re: [Health] DeprecationWarning: With-statements now directly support multiple context managers
Date: Tue, 29 May 2012 15:47:36 +0100

Hi Ronald,

On 29 May 2012 12:32, ronald munjoma <address@hidden> wrote:
> Good day,
>
> I am getting DeprecationWarning when running trytond. Is this just a warning
> or something to worry about?
>
> address@hidden:~/demo$ python health_demo_server.py
> No handlers could be found for logger "party"
> /home/gnuhealth/.local/lib/python2.7/site-packages/trytond/model/browse.py:172:
> DeprecationWarning: With-statements now directly support multiple context
> managers
>   Transaction().set_context(self._context)):
> /home/gnuhealth/.local/lib/python2.7/site-packages/trytond/model/fields/reference.py:72:
> DeprecationWarning: With-statements now directly support multiple context
> managers
>   Transaction().set_user(0)):
> /home/gnuhealth/.local/lib/python2.7/site-packages/trytond/ir/rule.py:203:
> DeprecationWarning: With-statements now directly support multiple context
> managers
>   Transaction().set_context(user=0)):
> /home/gnuhealth/.local/lib/python2.7/site-packages/trytond/modules/__init__.py:370:
> DeprecationWarning: With-statements now directly support multiple context
> managers
>   with contextmanager:
>

It's because you are using Python 2.7.

from future import with_statement has been deprecated

It can be safely ignored.

> Regards and thanks
> Ronald Munjoma



-- 
Craig

'The first time any man's freedom is trodden on - we are all damaged.'
Jean-Luc Picard
()  ascii ribbon campaign - against html mail
/\



reply via email to

[Prev in Thread] Current Thread [Next in Thread]