diff --git a/src/OFS/EtagSupport.py b/src/OFS/EtagSupport.py index c3e5968478..b2facda348 100644 --- a/src/OFS/EtagSupport.py +++ b/src/OFS/EtagSupport.py @@ -20,8 +20,8 @@ class EtagBaseInterface(Interface): - """Basic Etag support interface, meaning the object supports generating - an Etag that can be used by certain HTTP and WebDAV Requests.""" + """Basic Etag support interface, meaning the object supports generating an + Etag that can be used by certain HTTP and WebDAV Requests.""" def http__etag(): """Entity tags are used for comparing two or more entities from the same requested resource. diff --git a/src/OFS/Image.py b/src/OFS/Image.py index 3742867a8c..59a10ee7f1 100644 --- a/src/OFS/Image.py +++ b/src/OFS/Image.py @@ -1084,12 +1084,12 @@ def tag( the 'scale', 'xscale', and 'yscale' keyword arguments will be used to automatically adjust the output height and width values of the image tag. - - Since 'class' is a Python reserved word, it - cannot be passed in directly in keyword arguments which is a - problem if you are trying to use 'tag()' to include a CSS class. - The tag() method will accept a 'css_class' argument that will be - converted to 'class' in the output tag to work around this. + + Since 'class' is a Python reserved word, it cannot be passed in + directly in keyword arguments which is a problem if you are + trying to use 'tag()' to include a CSS class. The tag() method + will accept a 'css_class' argument that will be converted to + 'class' in the output tag to work around this. """ if height is None: height = self.height diff --git a/src/OFS/interfaces.py b/src/OFS/interfaces.py index 474b4c7ce9..27214dba32 100644 --- a/src/OFS/interfaces.py +++ b/src/OFS/interfaces.py @@ -394,8 +394,8 @@ class ILockItem(Interface): # XXX: WAAAA! What is a ctor doing in the interface? def __init__(creator, owner, depth=0, timeout='Infinity', locktype='write', lockscope='exclusive', token=None): - """If any of the following are untrue, a **ValueError** exception - will be raised. + """If any of the following are untrue, a **ValueError** exception will + be raised. - **creator** MUST be a Zope user object or string to find a valid user object. diff --git a/src/Shared/DC/Scripts/Signature.py b/src/Shared/DC/Scripts/Signature.py index 2e64ff2c5c..ed035b875d 100644 --- a/src/Shared/DC/Scripts/Signature.py +++ b/src/Shared/DC/Scripts/Signature.py @@ -32,14 +32,14 @@ def __init__(self, varnames=(), argcount=-1): def __eq__(self, other): if not isinstance(other, FuncCode): return False - return ((self.co_argcount, self.co_varnames) == - (other.co_argcount, other.co_varnames)) + return ((self.co_argcount, self.co_varnames) + == (other.co_argcount, other.co_varnames)) def __lt__(self, other): if not isinstance(other, FuncCode): return False - return ((self.co_argcount, self.co_varnames) < - (other.co_argcount, other.co_varnames)) + return ((self.co_argcount, self.co_varnames) + < (other.co_argcount, other.co_varnames)) def _setFuncSignature(self, defaults=None, varnames=(), argcount=-1): diff --git a/src/webdav/hookable_PUT.py b/src/webdav/hookable_PUT.py index 2d0236f223..7bc1c02128 100644 --- a/src/webdav/hookable_PUT.py +++ b/src/webdav/hookable_PUT.py @@ -8,7 +8,7 @@ def PUT_factory(self, name, typ, body): - """PUT factory""" + """PUT factory.""" if TEXT_PATTERN.match(typ): return OFS.DTMLMethod.DTMLMethod('', __name__=name) return None