[extensions-web] search: Prevent some warnings



commit ec699dd87f063d96a94c75fcdf3f9b2b8a6060c6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Mar 18 01:05:39 2013 -0400

    search: Prevent some warnings

 sweettooth/extensions/search.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/extensions/search.py b/sweettooth/extensions/search.py
index 253903a..64775b1 100644
--- a/sweettooth/extensions/search.py
+++ b/sweettooth/extensions/search.py
@@ -57,7 +57,6 @@ def enquire(querystring):
     qp.set_stemmer(xapian.Stem("en"))
     qp.set_database(db)
 
-    enquire = xapian.Enquire(db)
-    enquire.set_query(qp.parse_query(querystring))
-
-    return db, enquire
+    enquiry = xapian.Enquire(db)
+    enquiry.set_query(qp.parse_query(querystring))
+    return db, enquiry


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]