changeset 1377:5fbe26f932ca

pep8: fix some E271
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 10 Jun 2012 19:54:44 +0200
parents 62e5dd1a09f1
children 2e1a30ca278a
files MoinMoin/_tests/test_sourcecode.py MoinMoin/converter/docbook_out.py MoinMoin/converter/html_out.py MoinMoin/converter/rst_out.py MoinMoin/datastruct/backends/_tests/test_config_dicts.py MoinMoin/security/_tests/test_security.py
diffstat 6 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_sourcecode.py	Sun Jun 10 19:44:12 2012 +0200
+++ b/MoinMoin/_tests/test_sourcecode.py	Sun Jun 10 19:54:44 2012 +0200
@@ -25,7 +25,7 @@
 
 PEP8IGNORE = """
     E202 E221 E222 E241 E301 E302 E401 E501 E701 W391 W601 W602
-    E121 E122 E123 E124 E125 E126 E127 E128 E225 E251 E261 E262 E271 E293
+    E121 E122 E123 E124 E125 E126 E127 E128 E225 E251 E261 E262
 """.split()
 
 # stuff disabled due to malfunctioning of the pep8 checker:
--- a/MoinMoin/converter/docbook_out.py	Sun Jun 10 19:44:12 2012 +0200
+++ b/MoinMoin/converter/docbook_out.py	Sun Jun 10 19:54:44 2012 +0200
@@ -256,7 +256,7 @@
 
         # We will close a section before starting a new one
         # Need more test
-        elif  depth < self.current_section:
+        elif depth < self.current_section:
             if self.parent_section != 0:
                 section_tag = 'sect{0}'.format(self.parent_section)
                 section = ET.Element(docbook(section_tag), attrib={},
@@ -356,7 +356,7 @@
         mimetype = Type(_type=element.get(moin_page.type_, 'application/x-nonexistent'))
         if href:
             attrib[docbook.fileref] = href
-            if  Type('image/').issupertype(mimetype):
+            if Type('image/').issupertype(mimetype):
                 object_data = self.new(docbook.imagedata, attrib=attrib,
                                        children=[])
                 object_element = self.new(docbook.imageobject, attrib={},
--- a/MoinMoin/converter/html_out.py	Sun Jun 10 19:44:12 2012 +0200
+++ b/MoinMoin/converter/html_out.py	Sun Jun 10 19:54:44 2012 +0200
@@ -221,7 +221,7 @@
         return pre
 
     def visit_moinpage_blockquote(self, elem):
-        return  self.new_copy(html.blockquote, elem)
+        return self.new_copy(html.blockquote, elem)
 
     def visit_moinpage_code(self, elem):
         return self.new_copy(html.code, elem)
--- a/MoinMoin/converter/rst_out.py	Sun Jun 10 19:44:12 2012 +0200
+++ b/MoinMoin/converter/rst_out.py	Sun Jun 10 19:54:44 2012 +0200
@@ -492,7 +492,7 @@
 
         ret = self.define_references() + ret + self.open_children(elem)
         if self.last_closed == "text":
-            return  ret + u'\n'
+            return ret + u'\n'
         return ret
 
     def open_moinpage_note(self, elem):
--- a/MoinMoin/datastruct/backends/_tests/test_config_dicts.py	Sun Jun 10 19:44:12 2012 +0200
+++ b/MoinMoin/datastruct/backends/_tests/test_config_dicts.py	Sun Jun 10 19:54:44 2012 +0200
@@ -6,7 +6,7 @@
 """
 
 
-from  MoinMoin.datastruct.backends._tests import DictsBackendTest
+from MoinMoin.datastruct.backends._tests import DictsBackendTest
 from MoinMoin.datastruct import ConfigDicts
 from MoinMoin._tests import wikiconfig
 
--- a/MoinMoin/security/_tests/test_security.py	Sun Jun 10 19:44:12 2012 +0200
+++ b/MoinMoin/security/_tests/test_security.py	Sun Jun 10 19:54:44 2012 +0200
@@ -187,7 +187,7 @@
         """ security: allow extra white space between entries """
         acl_iter = acliter('UserOne,user two:read,write   user three,UserFour:read  All:')
         mod, entries, rights = acl_iter.next()
-        assert  entries == ['UserOne', 'user two']
+        assert entries == ['UserOne', 'user two']
         assert rights == ['read', 'write']
         mod, entries, rights = acl_iter.next()
         assert entries == ['user three', 'UserFour']