[PATCH 09 of 16 Mailinglist cube] [autopep8] E302 - Add missing 2 blank lines

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 09:45:24 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585461703 0
#      Sun Mar 29 06:01:43 2020 +0000
# Node ID 8a7a0f14e617dc7bbd603de33b239c60c6c67294
# Parent  c8efb573582e1bca0503c2874386117aaf55d177
[autopep8] E302 - Add missing 2 blank lines

diff --git a/cubicweb_mailinglist/entities.py b/cubicweb_mailinglist/entities.py
--- a/cubicweb_mailinglist/entities.py
+++ b/cubicweb_mailinglist/entities.py
@@ -8,6 +8,7 @@
 
 from cubicweb.entities import AnyEntity, fetch_config
 
+
 class MailingList(AnyEntity):
     """customized class for MailingList entities"""
     __regid__ = 'MailingList'
diff --git a/cubicweb_mailinglist/schema.py b/cubicweb_mailinglist/schema.py
--- a/cubicweb_mailinglist/schema.py
+++ b/cubicweb_mailinglist/schema.py
@@ -3,6 +3,7 @@
 
 from cubicweb import _
 
+
 class MailingList(EntityType):
     __permissions__ = {
         'read': ('managers', 'users', 'guests'),
diff --git a/cubicweb_mailinglist/views.py b/cubicweb_mailinglist/views.py
--- a/cubicweb_mailinglist/views.py
+++ b/cubicweb_mailinglist/views.py
@@ -18,6 +18,7 @@
 for attr in ('name', 'homepage', 'archive', 'mlid', 'email_address'):
     uicfg.primaryview_section.tag_attribute(('MailingList', attr), 'hidden')
 
+
 class MLPrimaryView(primary.PrimaryView):
     __select__ = is_instance('MailingList')
     show_attr_label = False
@@ -85,6 +86,7 @@
     def isioc_items(self):
         return self.reverse_sent_on
 
+
 def registration_callback(vreg):
     vreg.register_all(globals().values(), __name__, (MLISIOCContainerAdapter,))
     if 'sent_on' in vreg.schema['MailingList'].object_relations():
diff --git a/test/test_mailinglist.py b/test/test_mailinglist.py
--- a/test/test_mailinglist.py
+++ b/test/test_mailinglist.py
@@ -1,6 +1,7 @@
 import unittest
 from cubicweb.devtools.testlib import AutomaticWebTest
 
+
 class AutomaticWebTest(AutomaticWebTest):
 
     def to_test_etypes(self):
diff --git a/test/unittest_mailinglist.py b/test/unittest_mailinglist.py
--- a/test/unittest_mailinglist.py
+++ b/test/unittest_mailinglist.py
@@ -3,6 +3,7 @@
 from cubicweb.web.views import actions, massmailing
 from cubicweb_mailinglist import views as mlactions
 
+
 class MailingListTC(CubicWebTC):
     def test_possible_actions(self):
         with self.admin_access.web_request() as req:




More information about the cubicweb-devel mailing list