Re: help with python

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

 





On Wed, Feb 25, 2009 at 4:02 PM, Itamar Reis Peixoto <itamar@xxxxxxxxxxxxxxxx> wrote:
Anyone Can help to fix this bug with system-config-lvm ?

https://bugzilla.redhat.com/show_bug.cgi?id=466899

is very easy to fix, but I have no skill's with python.



The problem is that the comparison is using floats,
which will fail (1.41.3 > 1.39 --> invalid syntax):

            if (s == 0 or s == 1) and float(e.strip().split()[1]) >= 1.39:
                return (True, cmd)

I think the easiest way, in this case, is using strings:

            if (s == 0 or s == 1) and e.strip().split()[1] >= '1.39':
                return (True, cmd)


--
Paulo Roma Cavalcanti
LCG - UFRJ
-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux