Skip to content

Commit 275e96e

Browse files
committed
docstring tweak
1 parent ab3b189 commit 275e96e

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

spyne/service.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
1818
#
1919

20+
"""
21+
This module contains the :class:`ServiceBase` class and its helper objects.
22+
"""
23+
2024
import logging
2125
logger = logging.getLogger(__name__)
2226

@@ -25,13 +29,10 @@
2529
from spyne._base import EventManager
2630
from spyne.util.oset import oset
2731

28-
'''This module contains the :class:`ServiceBase` class and its helper objects.
29-
'''
30-
3132
class ServiceBaseMeta(type):
32-
'''Creates the :class:`spyne.MethodDescriptor` objects by iterating over
33+
"""Creates the :class:`spyne.MethodDescriptor` objects by iterating over
3334
tagged methods.
34-
'''
35+
"""
3536

3637
def __init__(self, cls_name, cls_bases, cls_dict):
3738
super(ServiceBaseMeta, self).__init__(cls_name, cls_bases, cls_dict)
@@ -79,7 +80,7 @@ def is_auxiliary(self):
7980

8081

8182
class ServiceBase(object):
82-
'''The ``ServiceBase`` class is the base class for all service definitions.
83+
"""The ``ServiceBase`` class is the base class for all service definitions.
8384
8485
The convention is to have public methods defined under a subclass of this
8586
class along with common properties of public methods like header classes or
@@ -119,7 +120,7 @@ class along with common properties of public methods like header classes or
119120
* ``method_exception_string``
120121
Called by the transport right before passing the exception string to
121122
the client.
122-
'''
123+
"""
123124

124125
__metaclass__ = ServiceBaseMeta
125126

@@ -182,7 +183,7 @@ def get_tns(cls):
182183

183184
@classmethod
184185
def _has_callbacks(cls):
185-
'''Determines if this service definition has callback methods or not.'''
186+
"""Determines if this service definition has callback methods or not."""
186187

187188
for method in cls.public_methods.values():
188189
if method.is_callback:
@@ -192,13 +193,13 @@ def _has_callbacks(cls):
192193

193194
@classmethod
194195
def call_wrapper(cls, ctx):
195-
'''Called in place of the original method call. You can override this to
196+
"""Called in place of the original method call. You can override this to
196197
do your own exception handling.
197198
198199
:param ctx: The method context.
199200
200201
The overriding function must call this function by convention.
201-
'''
202+
"""
202203

203204
if ctx.descriptor.body_style is BODY_STYLE_BARE:
204205
ctx.in_object = [ctx.in_object]

0 commit comments

Comments
 (0)