Closed GoogleCodeExporter closed 9 years ago
sorry forgot to cc people
Original comment by jamie.l...@gmail.com
on 11 Apr 2012 at 4:21
Hmmmm, so taking the len of a NoneObject shouldn't cause a problem, it should
just return 0. The only reason I can think that there'd be a warning is if
there were something like len(str(NoneObject)), in which case it's the str()
that causes the warning, not the len.
Anyway, I've attached a patch that adds a native len function to Strings and
_UNICODE_STRINGs. It takes the length of the internal unicode string, rather
than the ascii one (although there should be no difference). Hopefully that'll
solve the problem, lemme know how you get on please... 5:)
Original comment by mike.auty@gmail.com
on 11 Apr 2012 at 9:01
Attachments:
This seems to work fine, I can use the -s flag to mutantscan without issues.
Gleeda feel free to re-open if it doesn't work for you.
Original comment by michael.hale@gmail.com
on 11 Apr 2012 at 11:44
This issue was closed by revision r1622.
Original comment by michael.hale@gmail.com
on 11 Apr 2012 at 11:44
Original issue reported on code.google.com by
jamie.l...@gmail.com
on 11 Apr 2012 at 2:56