changeset 3812:30ed528054ed

fix some pep8 failures
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 02 Jul 2008 01:05:09 +0200
parents e22cd9105e37
children 6e7ab559c67d
files MoinMoin/action/_tests/test_sendcached.py MoinMoin/wikiutil.py
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/_tests/test_sendcached.py	Wed Jul 02 01:03:44 2008 +0200
+++ b/MoinMoin/action/_tests/test_sendcached.py	Wed Jul 02 01:05:09 2008 +0200
@@ -81,7 +81,7 @@
 
     def test_put_cache_complex(self):
         """Test if put_cache() works for a more complex, practical scenario:
-            
+
            As 'source' we just use some random integer as count value.
 
            The 'rendered representation' of it is just the word "spam" repeated
@@ -90,7 +90,7 @@
            The cache key calculation (for the 'non-guessable' keys) is also
            rather simple.
 
-           In real world, source would be likely some big image, rendered 
+           In real world, source would be likely some big image, rendered
            representation of it a thumbnail / preview of it. Or some LaTeX
            source and its rendered representation as png image.
            Key calculation could be some MAC or some other hard to guess and
--- a/MoinMoin/wikiutil.py	Wed Jul 02 01:03:44 2008 +0200
+++ b/MoinMoin/wikiutil.py	Wed Jul 02 01:05:09 2008 +0200
@@ -1149,11 +1149,11 @@
         except AttributeError:
             raise PluginAttributeError
     else:
-       # module now has the toplevel module of <moduleName> (see __import__ docs!)
-       components = moduleName.split('.')
-       for comp in components[1:]:
-           module = getattr(module, comp)
-       return module
+        # module now has the toplevel module of <moduleName> (see __import__ docs!)
+        components = moduleName.split('.')
+        for comp in components[1:]:
+            module = getattr(module, comp)
+        return module
 
 
 def builtinPlugins(kind):