nagiosplugin icon indicating copy to clipboard operation
nagiosplugin copied to clipboard

Bug Class Range: Range(0) gives wrong (empty) Range whereas Range('0') works properly

Open keenonkites opened this issue 3 months ago • 1 comments

Hi,

I've discovered a Bug in the Range Class:

  • Range(0) gives an empty range

Range('0') works properly.

I could nail down the problem in the following lines: def __new__(cls, spec=''): spec = spec or ''

I was able to fix it by: def __new__(cls, spec=None): if spec == None: spec = ''

Cheers Patrik

keenonkites avatar Sep 24 '25 10:09 keenonkites