Python3 doesn't allow comparisons between 'NoneType' and some other types, like
float, generating the following error:
TypeError: '<' not supported between instances of 'float' and 'NoneType'
This error was encountered when calling bisect() with tuples that have a second element
as 'None' (one occurance is when displaying all thumbnails) where the corresponding element
type is int, float, etc. Instead, single element tuples are created, which result in the correct
comparison behavior.
It should be a separate issue. This PR is targeted specifically at the "TypeError: '<' not supported between instances of 'float' and 'NoneType'" errors.
Python3 doesn't allow comparisons between 'NoneType' and some other types, like float, generating the following error:
TypeError: '<' not supported between instances of 'float' and 'NoneType'
This error was encountered when calling bisect() with tuples that have a second element as 'None' (one occurance is when displaying all thumbnails) where the corresponding element type is int, float, etc. Instead, single element tuples are created, which result in the correct comparison behavior.
Signed-off-by: Michael Jeronimo michael.jeronimo@openrobotics.org