mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-03 15:45:46 +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)
|
self._lower, self._upper, self._bounds)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if (self._lower, self._upper, self._bounds) == (None, None, None):
|
if self._bounds is None:
|
||||||
return 'empty'
|
return 'empty'
|
||||||
|
|
||||||
items = [
|
items = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user