changeset 411:6f6a29825a1e

Fixed test_sourcecode failures
author Michael Mayorov <marchael@kb.csu.ru>
date Sun, 07 Aug 2011 18:15:04 +0000
parents 0f9a97f74a8d
children 0173477e11bc d49d08bb5f50
files MoinMoin/script/maint/index.py MoinMoin/search/analyzers.py MoinMoin/storage/backends/indexing.py
diffstat 3 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/index.py	Sun Aug 07 17:57:18 2011 +0000
+++ b/MoinMoin/script/maint/index.py	Sun Aug 07 18:15:04 2011 +0000
@@ -34,9 +34,9 @@
     description = 'Build indexes'
 
     option_list = (
-        Option('--for', required=True, dest='indexname', type=str, choices=("all-revs", "latest-revs", "both"), 
+        Option('--for', required=True, dest='indexname', type=str, choices=("all-revs", "latest-revs", "both"),
             help='For what type of indexes we will use action'),
-        Option('--action', required=True, dest='action', type=str, choices=("build", "update", "clean", "move", "show"), 
+        Option('--action', required=True, dest='action', type=str, choices=("build", "update", "clean", "move", "show"),
             help="""
                   Action for given indexes:
                   build -- Build in index_dir_tmp
@@ -238,6 +238,6 @@
         if indexname == "both":
             do_action(action, both_indexnames_schemas)
         elif indexname == "all-revs":
-            do_action(action, (all_indexname_schema,))
+            do_action(action, (all_indexname_schema, ))
         elif indexname == "latest-revs":
-            do_action(action, (latest_indexname_schema,))
+            do_action(action, (latest_indexname_schema, ))
--- a/MoinMoin/search/analyzers.py	Sun Aug 07 17:57:18 2011 +0000
+++ b/MoinMoin/search/analyzers.py	Sun Aug 07 18:15:04 2011 +0000
@@ -100,7 +100,7 @@
                 yield tk
 
 def item_name_analyzer():
-    """ 
+    """
     Calls tokenizer
 
     Input: "some item name", "SomeItem/SubItem", "GSOC2011"
--- a/MoinMoin/storage/backends/indexing.py	Sun Aug 07 17:57:18 2011 +0000
+++ b/MoinMoin/storage/backends/indexing.py	Sun Aug 07 18:15:04 2011 +0000
@@ -197,7 +197,6 @@
     # TODO maybe use this class later for data indexing also,
     # TODO by intercepting write() to index data written to a revision
 
-
 from whoosh.writing import AsyncWriter
 from MoinMoin.search.indexing import WhooshIndex