nagiosplugin
nagiosplugin copied to clipboard
Bug Class Range: Range(0) gives wrong (empty) Range whereas Range('0') works properly
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