Hi Takatoshi-san,

On Wed, Jun 26, 2013 at 11:48:00AM +0900, Takatoshi MATSUO wrote:
> Hi Dejan
> 
> I received another FutureWarning of python.
> 
> /usr/lib64/python2.6/site-packages/crmsh/completion.py:88:
> FutureWarning: The behavior of this
> method will change in future versions. Use specific 'len(elem)' or
> 'elem is not None' test instead.
>   if not doc

Fixed now. Thanks!

Dejan

> Regards,
> Takatoshi MATSUO
> 
> 2013/6/21 Takatoshi MATSUO <matsuo....@gmail.com>:
> > Hi Dejan
> >
> > Thank you for your quick response.
> > I can inhibit warnings.
> >
> > Regards,
> > Takatoshi MATSUO
> >
> >
> > 2013/6/21 Dejan Muhamedagic <de...@suse.de>:
> >> Hi Takatoshi-san,
> >>
> >> On Fri, Jun 21, 2013 at 04:41:39PM +0900, Takatoshi MATSUO wrote:
> >>> Hi Dejan
> >>>
> >>> I use latest crmsh(ff28b19bdb1d) and it issues FutureWarning of python
> >>> when using comment(#).
> >>>
> >>> config.crm file
> >>> --------------------
> >>> # Comment
> >>> property \
> >>>     no-quorum-policy="ignore" \
> >>>     stonith-enabled="false" \
> >>>     startup-fencing="false" \
> >>>     stonith-timeout="20s"
> >>> --------------------
> >>>
> >>> -------
> >>> # crm configure load update config.crm
> >>> /usr/lib64/python2.7/site-packages/crmsh/cibconfig.py:917:
> >>> FutureWarning: The behavior of this method will change in future
> >>> versions. Use specific 'len(elem)' or 'elem is not None' test instead.
> >>>   if comments and node:
> >>
> >> Fixed now. And some more. Hope there won't be any more in Future.
> >>
> >> Cheers,
> >>
> >> Dejan
> >>
> >>> -------
> >>>
> >>> I use python 2.7.3 on Fedora 18.
> >>> Python 2.6.6 issues same warning on RHEL6.
> >>>
> >>> Thanks,
> >>> Takatoshi MATSUO
> >>> _______________________________________________________
> >>> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> >>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >>> Home Page: http://linux-ha.org/
> >> _______________________________________________________
> >> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> >> Home Page: http://linux-ha.org/
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to