Skip to content

Commit

Permalink
apply pupgrade --py36-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Sep 6, 2020
1 parent 3b72b4f commit 1ce19ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion starlette/middleware/sessions.py
Expand Up @@ -64,7 +64,7 @@ async def send_wrapper(message: Message) -> None:
elif not initial_session_was_empty:
# The session has been cleared.
headers = MutableHeaders(scope=message)
header_value = "%s=%s; %s" % (
header_value = "{}={}; {}".format(
self.session_cookie,
"null; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT;",
self.security_flags,
Expand Down
2 changes: 1 addition & 1 deletion starlette/routing.py
Expand Up @@ -181,7 +181,7 @@ def __init__(
if methods is None:
self.methods = None
else:
self.methods = set(method.upper() for method in methods)
self.methods = {method.upper() for method in methods}
if "GET" in self.methods:
self.methods.add("HEAD")

Expand Down

0 comments on commit 1ce19ad

Please sign in to comment.