Faster check for empty range in str()

This commit is contained in:
Daniele Varrazzo 2018-10-04 11:46:07 +01:00
parent d317977205
commit 8bd7ad7bb5

View File

@ -63,7 +63,7 @@ class Range(object):
self._lower, self._upper, self._bounds)
def __str__(self):
if (self._lower, self._upper, self._bounds) == (None, None, None):
if self._bounds is None:
return 'empty'
items = [