Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
hooks:
- id: black
args: [--line-length=80]
- repo: https://github.com/PyCQA/flake8
rev: "3.8.4"
rev: "7.3.0"
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.4
rev: v3.21.0
hooks:
- id: pyupgrade
args: [--py36-plus]
6 changes: 3 additions & 3 deletions more/itsdangerous/identity_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def secret(self):

@property
def identity_class(self):
""" The identity class to use. """
"""The identity class to use."""
return morepath.Identity

@property
Expand Down Expand Up @@ -104,13 +104,13 @@ def identify(self, request):
return self.identity_class(userid, **signatures)

def remember(self, response, request, identity):
""" Stores the given identity in the cookies of the response. """
"""Stores the given identity in the cookies of the response."""
for key in self.required_keys:
signed_value = self.sign(getattr(identity, key), salt=key)
response.set_cookie(key, signed_value, **self.cookie_settings)

def forget(self, response, request):
""" Removes the identity from the cookies, basically forgetting it. """
"""Removes the identity from the cookies, basically forgetting it."""
for key in self.required_keys:
response.delete_cookie(key)

Expand Down