Skip to content

Commit 8af8ef6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 74bec68 commit 8af8ef6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

more/itsdangerous/identity_policy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def secret(self):
4949

5050
@property
5151
def identity_class(self):
52-
""" The identity class to use. """
52+
"""The identity class to use."""
5353
return morepath.Identity
5454

5555
@property
@@ -104,13 +104,13 @@ def identify(self, request):
104104
return self.identity_class(userid, **signatures)
105105

106106
def remember(self, response, request, identity):
107-
""" Stores the given identity in the cookies of the response. """
107+
"""Stores the given identity in the cookies of the response."""
108108
for key in self.required_keys:
109109
signed_value = self.sign(getattr(identity, key), salt=key)
110110
response.set_cookie(key, signed_value, **self.cookie_settings)
111111

112112
def forget(self, response, request):
113-
""" Removes the identity from the cookies, basically forgetting it. """
113+
"""Removes the identity from the cookies, basically forgetting it."""
114114
for key in self.required_keys:
115115
response.delete_cookie(key)
116116

0 commit comments

Comments
 (0)