Helpviewer/OpenSearch/OpenSearchReader.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3035
36e9f388958b
child 3145
a9de05d4a22f
diff -r 0a02c433f52d -r 5883ce99ee12 Helpviewer/OpenSearch/OpenSearchReader.py
--- a/Helpviewer/OpenSearch/OpenSearchReader.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/Helpviewer/OpenSearch/OpenSearchReader.py	Sun Nov 03 15:58:22 2013 +0100
@@ -71,8 +71,8 @@
                    engine.suggestionsUrlTemplate():
                     continue
                 
-                if (not type_ or \
-                    type_ == "text/html" or \
+                if (not type_ or
+                    type_ == "text/html" or
                     type_ == "application/xhtml+xml") and \
                    engine.suggestionsUrlTemplate():
                     continue
@@ -104,8 +104,8 @@
                     engine.setSuggestionsParameters(parameters)
                     engine.setSuggestionsMethod(method)
                 elif not type_ or \
-                     type_ == "text/html" or \
-                     type_ == "application/xhtml+xml":
+                    type_ == "text/html" or \
+                        type_ == "application/xhtml+xml":
                     engine.setSearchUrlTemplate(url)
                     engine.setSearchParameters(parameters)
                     engine.setSearchMethod(method)

eric ide

mercurial