Code cleanup default tip
authorThierry Florac <tflorac@ulthar.net>
Mon, 29 Jun 2020 11:22:54 +0200
changeset 96 e9b0a0f92960
parent 95 e9b102805b94
Code cleanup
src/pyams_sequence/interfaces/__init__.py
--- a/src/pyams_sequence/interfaces/__init__.py	Fri Jul 26 19:19:18 2019 +0200
+++ b/src/pyams_sequence/interfaces/__init__.py	Mon Jun 29 11:22:54 2020 +0200
@@ -10,18 +10,14 @@
 # FOR A PARTICULAR PURPOSE.
 #
 
-__docformat__ = 'restructuredtext'
+from zope.annotation.interfaces import IAttributeAnnotatable
+from zope.interface import Attribute, Interface
+from zope.schema import Int, TextLine
+
+from pyams_sequence.schema import InternalReferenceField, InternalReferencesListField
 
 
-# import standard library
-
-# import interfaces
-from pyams_sequence.schema import InternalReferenceField, InternalReferencesListField
-from zope.annotation.interfaces import IAttributeAnnotatable
-
-# import packages
-from zope.interface import Interface, Attribute
-from zope.schema import TextLine, Int
+__docformat__ = 'restructuredtext'
 
 from pyams_sequence import _
 
@@ -90,12 +86,14 @@
     """Marker interface used to identify contents requiring sequential IDs"""
 
     sequence_name = TextLine(title=_("Sequence name"),
-                             description=_("Name of registered sequence utility used to get unique IDs"),
+                             description=_("Name of registered sequence utility used to get "
+                                           "unique IDs"),
                              required=False)
 
     sequence_prefix = TextLine(title=_("Hexadecimal prefix"),
-                               description=_("Prefix used to generate hexadecimal ID, placed after utility prefix. "
-                                             "Generally defined at class level..."),
+                               description=_("Prefix used to generate hexadecimal ID, placed "
+                                             "after utility prefix. Generally defined at class "
+                                             "level..."),
                                required=False)
 
 
@@ -103,9 +101,10 @@
     """Internal link interface"""
 
     reference = InternalReferenceField(title=_("Internal reference"),
-                                       description=_("Internal link target reference. You can search a reference using "
-                                                     "'+' followed by internal number, of by entering text matching "
-                                                     "content title."),
+                                       description=_("Internal link target reference. You can "
+                                                     "search a reference using '+' followed by "
+                                                     "internal number, of by entering text "
+                                                     "matching content title."),
                                        required=True)
 
     target = Attribute("Internal reference target")