Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Sep 22, 2023
1 parent e0f172c commit 7415c00
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/OFS/EtagSupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions src/OFS/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/OFS/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions src/Shared/DC/Scripts/Signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/webdav/hookable_PUT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7415c00

Please sign in to comment.