From cb73785f610c8ca9a51d4a7c8a1f6fc6ed4f4696 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Thu, 17 Oct 2013 15:20:05 +0200
Subject: [PATCH] ZSQLCatalog: simplify Query.__repr__ in SearchTextParser

---
 product/ZSQLCatalog/SearchText/SearchTextParser.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/product/ZSQLCatalog/SearchText/SearchTextParser.py b/product/ZSQLCatalog/SearchText/SearchTextParser.py
index 40028b0ba0..8d919421d7 100755
--- a/product/ZSQLCatalog/SearchText/SearchTextParser.py
+++ b/product/ZSQLCatalog/SearchText/SearchTextParser.py
@@ -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):
-- 
2.30.9