Commit cb73785f authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Julien Muchembled

ZSQLCatalog: simplify Query.__repr__ in SearchTextParser

parent 12b5a000
No related merge requests found
......@@ -116,10 +116,7 @@ if __name__ == '__main__':
return (self.column, self.value, self.comparison_operator)
def __repr__(self):
value = self.value
if len(value) == 1:
value = value[0]
return 'Query(%r, %r, %r)' % (self.column, value, self.comparison_operator)
return 'Query(%r, %r, %r)' % (self.column, self.value, self.comparison_operator)
def __eq__(self, other):
if isinstance(other, Query):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment