changeset 3213:6162f334bd5a

fix some more minor problems find by pydev (unused/double imports, wrong indentation, ...)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 07 Mar 2008 14:45:05 +0100
parents 8a1f1a9dd37f
children ff32c72b9b79
files MoinMoin/_tests/test_caching.py MoinMoin/action/Despam.py MoinMoin/action/PackagePages.py MoinMoin/action/serveopenid.py MoinMoin/auth/_tests/test_auth.py MoinMoin/formatter/_tests/test_formatter.py MoinMoin/request/_tests/test_request.py
diffstat 7 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_caching.py	Fri Mar 07 09:13:46 2008 +0100
+++ b/MoinMoin/_tests/test_caching.py	Fri Mar 07 14:45:05 2008 +0100
@@ -56,8 +56,6 @@
 
     def test_remove(self):
         """ test if cache file removal works """
-        test_data = '12345abcde'
-        now = time.time()
         cache = caching.CacheEntry(self.request, 'test_arena', 'test_key', 'wiki')
         assert cache.exists()
         cache.remove()
--- a/MoinMoin/action/Despam.py	Fri Mar 07 09:13:46 2008 +0100
+++ b/MoinMoin/action/Despam.py	Fri Mar 07 14:45:05 2008 +0100
@@ -187,7 +187,6 @@
 
     editor = request.form.get('editor', [None])[0]
     timestamp = time.time() - DAYS * 24 * 3600
-       # request.form.get('timestamp', [None])[0]
     ok = request.form.get('ok', [0])[0]
 
     request.emit_http_headers()
--- a/MoinMoin/action/PackagePages.py	Fri Mar 07 09:13:46 2008 +0100
+++ b/MoinMoin/action/PackagePages.py	Fri Mar 07 14:45:05 2008 +0100
@@ -89,7 +89,7 @@
                 'target': wikiutil.escape(target), 'filename': wikiutil.escape(target)}, "error")
             raise ActionError
 
-         # Generate a package
+        # Generate a package
         output = open(fpath, "wb")
         package = self.collectpackage(unpackLine(pagelist, ","), output, target)
 
--- a/MoinMoin/action/serveopenid.py	Fri Mar 07 09:13:46 2008 +0100
+++ b/MoinMoin/action/serveopenid.py	Fri Mar 07 14:45:05 2008 +0100
@@ -14,7 +14,6 @@
 from openid.consumer.discover import (OPENID_1_0_TYPE,
     OPENID_1_1_TYPE, OPENID_2_0_TYPE, OPENID_IDP_2_0_TYPE)
 from openid import sreg
-from openid import server
 from openid.cryptutil import randomString
 from openid.server import server
 from openid.message import IDENTIFIER_SELECT
--- a/MoinMoin/auth/_tests/test_auth.py	Fri Mar 07 09:13:46 2008 +0100
+++ b/MoinMoin/auth/_tests/test_auth.py	Fri Mar 07 14:45:05 2008 +0100
@@ -6,7 +6,7 @@
     @license: GNU GPL, see COPYING for details.
 """
 
-import logging, StringIO, urllib
+import StringIO, urllib
 
 from MoinMoin.server.server_wsgi import WsgiConfig
 from MoinMoin.request import request_wsgi
--- a/MoinMoin/formatter/_tests/test_formatter.py	Fri Mar 07 09:13:46 2008 +0100
+++ b/MoinMoin/formatter/_tests/test_formatter.py	Fri Mar 07 14:45:05 2008 +0100
@@ -8,8 +8,6 @@
 
 import py
 
-import re
-
 from MoinMoin.Page import Page
 from MoinMoin import wikiutil
 
--- a/MoinMoin/request/_tests/test_request.py	Fri Mar 07 09:13:46 2008 +0100
+++ b/MoinMoin/request/_tests/test_request.py	Fri Mar 07 14:45:05 2008 +0100
@@ -84,7 +84,6 @@
 
         Spaces should normalize after invalid chars removed!
         """
-        import re
         cases = (
             # current acl chars
             (u'Name,:Group', u'NameGroup'),