changeset 1794:c3288587c552

Eclipse PyDev Check: fixed some more errors and warnings
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 23 Feb 2007 18:41:27 +0100
parents 2a4caa295346
children 94887c1c1e8f
files MoinMoin/_tests/broken/test_converter_text_html_text_moin_wiki.py MoinMoin/macro/__init__.py MoinMoin/search/Xapian.py MoinMoin/support/cgitb.py
diffstat 4 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/broken/test_converter_text_html_text_moin_wiki.py	Fri Feb 23 13:06:42 2007 +0100
+++ b/MoinMoin/_tests/broken/test_converter_text_html_text_moin_wiki.py	Fri Feb 23 18:41:27 2007 +0100
@@ -1065,10 +1065,6 @@
         xml.dom.ext.Print(tree, out)
         self.failUnlessEqual("<?xml version='1.0' encoding='UTF-8'?>%s" % output, out.getvalue().decode("utf-8"))
 
-class StripBreakTests(StripTests):
-    def do(self, text, output):
-        super(StripBreakTests, self).do(converter.strip_break, text, output)
-
 class StripWhitespaceTests(StripTests):
     def do(self, text, output):
         super(StripWhitespaceTests, self).do(converter.strip_whitespace, text, output)
--- a/MoinMoin/macro/__init__.py	Fri Feb 23 13:06:42 2007 +0100
+++ b/MoinMoin/macro/__init__.py	Fri Feb 23 18:41:27 2007 +0100
@@ -262,7 +262,6 @@
     def _macro_PageList(self, needle):
         from MoinMoin import search
         _ = self._
-        literal = 0
         case = 0
 
         # If called with empty or no argument, default to regex search for .+, the full page list.
@@ -275,7 +274,6 @@
             return '<span class="error">%s</span>' % err
 
         # Return a title search for needle, sorted by name.
-        # XXX: what's with literal?
         results = search.searchPages(self.request, needle,
                 titlesearch=1, case=case, sort='page_name')
         return results.pageList(self.request, self.formatter, paging=False)
--- a/MoinMoin/search/Xapian.py	Fri Feb 23 13:06:42 2007 +0100
+++ b/MoinMoin/search/Xapian.py	Fri Feb 23 18:41:27 2007 +0100
@@ -246,7 +246,7 @@
         
         @param query: the search query objects
         @keyword sort: the sorting of the results (default: 'weight')
-        @keyword historysearch: whether to search in all page revisions (default: 0)
+        @keyword historysearch: whether to search in all page revisions (default: 0) TODO: use/implement this
         """
         while True:
             try:
--- a/MoinMoin/support/cgitb.py	Fri Feb 23 13:06:42 2007 +0100
+++ b/MoinMoin/support/cgitb.py	Fri Feb 23 18:41:27 2007 +0100
@@ -590,7 +590,7 @@
             self.file.write('<p>A problem occurred in a Python script.\n')
 
         if self.logdir is not None:
-            import os, tempfile
+            import tempfile
             suffix = ['.txt', '.html'][self.format == "html"]
             (fd, path) = tempfile.mkstemp(suffix=suffix, dir=self.logdir)
             try: