changeset 5055:ce6ae8b5d9bd

MoinMoin.search: use new style classes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 30 Aug 2009 00:21:39 +0200
parents f6f530720499
children c0b78af148e7
files MoinMoin/search/builtin.py MoinMoin/search/queryparser/__init__.py MoinMoin/search/results.py
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/builtin.py	Sat Aug 29 23:57:14 2009 +0200
+++ b/MoinMoin/search/builtin.py	Sun Aug 30 00:21:39 2009 +0200
@@ -25,7 +25,7 @@
 ##############################################################################
 
 
-class PageQueue:
+class PageQueue(object):
     """
     Represents a locked page queue on the disk
     """
@@ -105,7 +105,7 @@
         return False
 
 
-class BaseIndex:
+class BaseIndex(object):
     """ Represents a search engine index """
 
     class LockedException(Exception):
--- a/MoinMoin/search/queryparser/__init__.py	Sat Aug 29 23:57:14 2009 +0200
+++ b/MoinMoin/search/queryparser/__init__.py	Sun Aug 30 00:21:39 2009 +0200
@@ -24,7 +24,7 @@
     """ error raised for problems when parsing the query """
 
 
-class QueryParser:
+class QueryParser(object):
     """
     Converts a String into a tree of Query objects.
     """
--- a/MoinMoin/search/results.py	Sat Aug 29 23:57:14 2009 +0200
+++ b/MoinMoin/search/results.py	Sun Aug 30 00:21:39 2009 +0200
@@ -93,7 +93,7 @@
     pass
 
 
-class FoundPage:
+class FoundPage(object):
     """ Represents a page in a search result """
 
     def __init__(self, page_name, matches=None, page=None, rev=0):
@@ -229,7 +229,7 @@
 ############################################################################
 
 
-class SearchResults:
+class SearchResults(object):
     """ Manage search results, supply different views
 
     Search results can hold valid search results and format them for