mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-03 07:45:45 +03:00
Faster check for empty range in str()
This commit is contained in:
parent
d317977205
commit
8bd7ad7bb5
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue
Block a user