[Sugar-devel] [PATCH 3/3] indexstore: disable pylint warning W0221 for parse_query

Sascha Silbe sascha-pgp at silbe.org
Fri Oct 15 13:36:12 EDT 2010


No other name I can think of is a better fit and no external code is using
this class, so it isn't an issue.
Disabling the warning reduces pylint clutter and makes it easier to spot real
issues.

Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>

diff --git a/src/carquinyol/indexstore.py b/src/carquinyol/indexstore.py
index 38483cb..b8088b2 100644
--- a/src/carquinyol/indexstore.py
+++ b/src/carquinyol/indexstore.py
@@ -201,6 +201,7 @@ class QueryParser (xapian.QueryParser):
             logging.warning('Invalid query string: ' + exception.get_msg())
             return Query()
 
+    # pylint: disable=W0221
     def parse_query(self, query_dict, query_string):
         logging.debug('parse_query %r %r', query_dict, query_string)
         queries = []
-- 
1.7.1



More information about the Sugar-devel mailing list