changeset 1378:2e1a30ca278a

pep8: fix some E262, ignore E261 for now (too much for now)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 10 Jun 2012 20:11:59 +0200
parents 5fbe26f932ca
children 440b2150593d
files MoinMoin/_tests/test_sourcecode.py MoinMoin/converter/docbook_in.py MoinMoin/script/migration/moin19/import19.py MoinMoin/storage/backends/_tests/__init__.py MoinMoin/storage/backends/_tests/test_fileserver.py MoinMoin/user.py
diffstat 6 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_sourcecode.py	Sun Jun 10 19:54:44 2012 +0200
+++ b/MoinMoin/_tests/test_sourcecode.py	Sun Jun 10 20:11:59 2012 +0200
@@ -24,8 +24,8 @@
 ])
 
 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
+    E202 E221 E222 E241 E261 E301 E302 E401 E501 E701 W391 W601 W602
+    E121 E122 E123 E124 E125 E126 E127 E128 E225 E251
 """.split()
 
 # stuff disabled due to malfunctioning of the pep8 checker:
--- a/MoinMoin/converter/docbook_in.py	Sun Jun 10 19:54:44 2012 +0200
+++ b/MoinMoin/converter/docbook_in.py	Sun Jun 10 20:11:59 2012 +0200
@@ -43,7 +43,7 @@
 
     # DocBook elements which are completely ignored by our converter
     # We even do not process children of these elements
-    ignored_tags = set([#Info elements
+    ignored_tags = set([# Info elements
                        'abstract', 'artpagenums', 'annotation',
                        'artpagenums', 'author', 'authorgroup',
                        'authorinitials', 'bibliocoverage', 'biblioid',
--- a/MoinMoin/script/migration/moin19/import19.py	Sun Jun 10 19:54:44 2012 +0200
+++ b/MoinMoin/script/migration/moin19/import19.py	Sun Jun 10 20:11:59 2012 +0200
@@ -411,7 +411,7 @@
             self.to_end()
             raise KeyError
         del meta['__rev']
-        del meta[EXTRA] #  we have full name in NAME
+        del meta[EXTRA] # we have full name in NAME
         meta[ACTION] = u'SAVE'
         meta = dict([(k, v) for k, v in meta.items() if v]) # remove keys with empty values
         return meta
--- a/MoinMoin/storage/backends/_tests/__init__.py	Sun Jun 10 19:54:44 2012 +0200
+++ b/MoinMoin/storage/backends/_tests/__init__.py	Sun Jun 10 20:11:59 2012 +0200
@@ -110,7 +110,7 @@
             metaid = self.be.store(meta, StringIO(data))
 
     def test_iter(self):
-        mds = [#(metadata items, data str)
+        mds = [# (metadata items, data str)
                 (dict(name='one'), 'ONE'),
                 (dict(name='two'), 'TWO'),
                 (dict(name='three'), 'THREE'),
--- a/MoinMoin/storage/backends/_tests/test_fileserver.py	Sun Jun 10 19:54:44 2012 +0200
+++ b/MoinMoin/storage/backends/_tests/test_fileserver.py	Sun Jun 10 20:11:59 2012 +0200
@@ -53,7 +53,7 @@
     def test_files(self):
         # note: as we can only store the data into the file system, meta can
         # only have items that are generated by the fileserver backend:
-        items = [#name,  meta,   data
+        items = [# name,  meta,   data
                  (u'foo.png', dict(size=11, contenttype=u'image/png'), 'png content'),
                  (u'bar.txt', dict(size=12, contenttype=u'text/plain'), 'text content'),
                 ]
@@ -82,7 +82,7 @@
     def test_dir(self):
         # note: as we can only store the data into the file system, meta can
         # only have items that are generated by the fileserver backend:
-        items = [#name,  meta,   data
+        items = [# name,  meta,   data
                  (u'dir/foo.png', dict(size=11, contenttype=u'image/png'), 'png content'),
                  (u'dir/bar.txt', dict(size=12, contenttype=u'text/plain'), 'text content'),
                 ]
--- a/MoinMoin/user.py	Sun Jun 10 19:54:44 2012 +0200
+++ b/MoinMoin/user.py	Sun Jun 10 20:11:59 2012 +0200
@@ -446,7 +446,7 @@
         if not exists:
             pass # XXX UserCreatedEvent
         else:
-            pass #  XXX UserChangedEvent
+            pass # XXX UserChangedEvent
 
     def getText(self, text):
         """ translate a text to the language of this user """