changeset 1375:2f19e76ad809

pep8: fix some E303
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 10 Jun 2012 19:42:36 +0200
parents 04a434634ef9
children 62e5dd1a09f1
files MoinMoin/auth/_tests/test_ldap_login.py MoinMoin/auth/ldap_login.py MoinMoin/auth/openidrp.py MoinMoin/conftest.py MoinMoin/converter/_tests/test_html_in.py MoinMoin/converter/docbook_out.py MoinMoin/converter/include.py MoinMoin/converter/mediawiki_in.py MoinMoin/converter/moinwiki_in.py MoinMoin/converter/pygments_in.py MoinMoin/datastruct/backends/_tests/__init__.py MoinMoin/macro/_tests/test__base.py MoinMoin/script/maint/moinshell.py MoinMoin/search/_tests/test_analyzers.py MoinMoin/storage/middleware/_tests/test_indexing.py MoinMoin/storage/middleware/_tests/test_protecting.py MoinMoin/storage/middleware/_tests/test_routing.py MoinMoin/storage/middleware/validation.py MoinMoin/themes/__init__.py MoinMoin/user.py MoinMoin/util/_tests/test_interwiki.py MoinMoin/util/diff3.py MoinMoin/util/diff_text.py MoinMoin/util/mime.py MoinMoin/util/registry.py
diffstat 25 files changed, 0 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/_tests/test_ldap_login.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/auth/_tests/test_ldap_login.py	Sun Jun 10 19:42:36 2012 +0200
@@ -179,7 +179,6 @@
     slapd_config = SLAPD_CONFIG
     ldif_content = LDIF_CONTENT
 
-
     def setup_class(self):
         """ Create LDAP servers environment, start slapds """
         self.ldap_envs = []
--- a/MoinMoin/auth/ldap_login.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/auth/ldap_login.py	Sun Jun 10 19:42:36 2012 +0200
@@ -124,7 +124,6 @@
         username = kw.get('username')
         password = kw.get('password')
 
-
         # we require non-empty password as ldap bind does a anon (not password
         # protected) bind if the password is empty and SUCCEEDS!
         if not password:
--- a/MoinMoin/auth/openidrp.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/auth/openidrp.py	Sun Jun 10 19:42:36 2012 +0200
@@ -101,7 +101,6 @@
                                                            openid_submit='1'
                                                           ))
 
-
             # not trusted
             return ContinueLogin(None, _('This OpenID provider is not trusted.'))
 
--- a/MoinMoin/conftest.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/conftest.py	Sun Jun 10 19:42:36 2012 +0200
@@ -101,7 +101,6 @@
         if hasattr(self._obj, 'im_self'):
             self._obj.im_self.app = self.app
 
-
     def teardown(self):
         super(MoinTestFunction, self).teardown()
 
--- a/MoinMoin/converter/_tests/test_html_in.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/converter/_tests/test_html_in.py	Sun Jun 10 19:42:36 2012 +0200
@@ -43,7 +43,6 @@
         out.write(f.write, namespaces=self.namespaces, )
         return self.output_re.sub(u'', f.getvalue())
 
-
     def do(self, input, path):
         string_to_parse = self.handle_input(input, args={})
         logging.debug("After the HTML_IN conversion : {0}".format(string_to_parse))
--- a/MoinMoin/converter/docbook_out.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/converter/docbook_out.py	Sun Jun 10 19:42:36 2012 +0200
@@ -378,7 +378,6 @@
         return self.new(docbook.inlinemediaobject, attrib={},
                         children=[object_element])
 
-
     def visit_moinpage_table(self, element):
         # TODO: Attributes conversion
         title = element.get(html('title'))
--- a/MoinMoin/converter/include.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/converter/include.py	Sun Jun 10 19:42:36 2012 +0200
@@ -271,7 +271,6 @@
                 #  end of processing for transclusion; the "result" will get inserted into the DOM below
                 return result
 
-
             # Traverse the DOM by calling self.recurse with each child of the current elem.  Starting elem.tag.name=='page'.
             container = []
             i = 0
--- a/MoinMoin/converter/mediawiki_in.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/converter/mediawiki_in.py	Sun Jun 10 19:42:36 2012 +0200
@@ -142,7 +142,6 @@
         stack.clear()
         stack.top_append(moin_page.separator())
 
-
     block_table = r"""
         ^
         (?P<table>
@@ -948,7 +947,6 @@
                 return ''.join(post_line)
             self.opened_tags = tags
 
-
     def _apply(self, match, prefix, *args):
         """
         Call the _repl method for the last matched group with the given prefix.
--- a/MoinMoin/converter/moinwiki_in.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/converter/moinwiki_in.py	Sun Jun 10 19:42:36 2012 +0200
@@ -178,7 +178,6 @@
     def number_rows_spanned_repl(self, args, number_rows_spanned):
         args.keyword['number-rows-spanned'] = int(number_rows_spanned)
 
-
     def add_attr_to_style(self, args, attr):
         args.keyword['style'] = args.keyword.get('style', "") + attr + " "
 
--- a/MoinMoin/converter/pygments_in.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/converter/pygments_in.py	Sun Jun 10 19:42:36 2012 +0200
@@ -52,7 +52,6 @@
             if lastval:
                 self._append(lasttype, lastval, element)
 
-
     class Converter(object):
         @classmethod
         def _factory(cls, type_input, type_output, **kw):
@@ -114,7 +113,6 @@
             body = moin_page.body(children=(blockcode, ))
             return moin_page.page(children=(body, ))
 
-
     from . import default_registry
     from MoinMoin.util.mime import Type, type_moin_document
     # Pygments type detection is rather expensive, therefore we want to register
--- a/MoinMoin/datastruct/backends/_tests/__init__.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/datastruct/backends/_tests/__init__.py	Sun Jun 10 19:42:36 2012 +0200
@@ -29,7 +29,6 @@
                    u'EmptyGroup': [],
                    u'CheckNotExistingGroup': [u'NotExistingGroup']}
 
-
     expanded_groups = {u'EditorGroup': [u'Admin1', u'Admin2', u'John',
                                         u'JoeDoe', u'Editor1'],
                        u'AdminGroup': [u'Admin1', u'Admin2', u'John'],
@@ -178,7 +177,6 @@
         assert dicts.get(u'SomeNotExistingDict') is None
         assert dicts.get(u'SomeNotExistingDict', {}) == {}
 
-
         for dict_name, expected_dict in self.dicts.items():
             test_dict = dicts[dict_name]
             for key, value in expected_dict.items():
--- a/MoinMoin/macro/_tests/test__base.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/macro/_tests/test__base.py	Sun Jun 10 19:42:36 2012 +0200
@@ -18,7 +18,6 @@
         with pytest.raises(NotImplementedError):
             macrobase_obj.__call__('content', 'arguments', 'page_url', 'alternative', 'context_block')
 
-
     def test_MacroBlockBase(self):
         """ test for MacroBlockBase class """
         class Test_MacroBlockBase(MacroBlockBase):
--- a/MoinMoin/script/maint/moinshell.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/script/maint/moinshell.py	Sun Jun 10 19:42:36 2012 +0200
@@ -30,7 +30,6 @@
 
     def __init__(self, banner=None, make_context=None, use_ipython=True):
 
-
         self.banner = banner or self.banner
         self.use_ipython = use_ipython
 
--- a/MoinMoin/search/_tests/test_analyzers.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/search/_tests/test_analyzers.py	Sun Jun 10 19:42:36 2012 +0200
@@ -116,7 +116,6 @@
 class TestMimeTokenizer(TokenizerTestBase):
     """ analyzers: test content type analyzer """
 
-
     test_cases_query = [
                   # (query, tokens)
                   (u'text/plain',
--- a/MoinMoin/storage/middleware/_tests/test_indexing.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/storage/middleware/_tests/test_indexing.py	Sun Jun 10 19:42:36 2012 +0200
@@ -348,7 +348,6 @@
         with pytest.raises(ValueError):
             rev.data.read()
 
-
     def test_indexed_content(self):
         # TODO: this is a very simple check that assumes that data is put 1:1
         # into index' CONTENT field.
--- a/MoinMoin/storage/middleware/_tests/test_protecting.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/storage/middleware/_tests/test_protecting.py	Sun Jun 10 19:42:36 2012 +0200
@@ -113,7 +113,6 @@
         with pytest.raises(AccessDenied):
             item.destroy_revision(revid_protected)
 
-
     def test_destroy_item(self):
         revid_unprotected, revid_protected = self.make_items(u'joe:destroy', u'boss:destroy')
         # now testing:
--- a/MoinMoin/storage/middleware/_tests/test_routing.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/storage/middleware/_tests/test_routing.py	Sun Jun 10 19:42:36 2012 +0200
@@ -30,7 +30,6 @@
     return ROBackend(store.meta_store, store.data_store)
 
 
-
 def pytest_funcarg__router(request):
     root_be = StoreBackend(MemoryBytesStore(), MemoryFileStore())
     sub_be = StoreBackend(MemoryBytesStore(), MemoryFileStore())
--- a/MoinMoin/storage/middleware/validation.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/storage/middleware/validation.py	Sun Jun 10 19:42:36 2012 +0200
@@ -132,7 +132,6 @@
     return name_validator(element, state)
 
 
-
 def user_contenttype_validator(element, state):
     """
     user profile content type
--- a/MoinMoin/themes/__init__.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/themes/__init__.py	Sun Jun 10 19:42:36 2012 +0200
@@ -45,7 +45,6 @@
         return get_theme(theme_name)
 
 
-
 def render_template(template, **context):
     flaskg.clock.start('render_template')
     output = render_theme_template(get_current_theme(), template, **context)
--- a/MoinMoin/user.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/user.py	Sun Jun 10 19:42:36 2012 +0200
@@ -452,7 +452,6 @@
         """ translate a text to the language of this user """
         return text # FIXME, was: self._request.getText(text, lang=self.language)
 
-
     # Bookmarks --------------------------------------------------------------
 
     def _set_bookmark(self, tm):
--- a/MoinMoin/util/_tests/test_interwiki.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/util/_tests/test_interwiki.py	Sun Jun 10 19:42:36 2012 +0200
@@ -102,7 +102,6 @@
         with pytest.raises(ValueError):
             InterWikiMap.from_string(u'foobarbaz')
 
-
     def test_real_interwiki_map(self):
         """
         Test a 'real' interwiki file.
--- a/MoinMoin/util/diff3.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/util/diff3.py	Sun Jun 10 19:42:36 2012 +0200
@@ -261,7 +261,6 @@
 AAA 014
 """
 
-
     text = text_merge(text0, text1, text2)
     print(text)
 
--- a/MoinMoin/util/diff_text.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/util/diff_text.py	Sun Jun 10 19:42:36 2012 +0200
@@ -39,7 +39,6 @@
 #            lines = [line for line in lines if line[0] != '?']
 #        return lines
 
-
     # calculate the hunks and remove the unchanged lines between them
     i = 0              # actual index in lines
     count = 0          # number of unchanged lines
--- a/MoinMoin/util/mime.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/util/mime.py	Sun Jun 10 19:42:36 2012 +0200
@@ -6,7 +6,6 @@
 """
 
 
-
 class Type(object):
     """
     :ivar type: Type part
--- a/MoinMoin/util/registry.py	Sun Jun 10 19:11:05 2012 +0200
+++ b/MoinMoin/util/registry.py	Sun Jun 10 19:42:36 2012 +0200
@@ -10,7 +10,6 @@
 """
 
 
-
 class RegistryBase(object):
     PRIORITY_REALLY_FIRST = -20
     PRIORITY_FIRST = -10