Skip to content

Commit

Permalink
Upgrade Python syntax with pyupgrade --py38-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 15, 2023
1 parent 37f68c7 commit b77c7d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cachecontrol/caches/file_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class _FileCacheMixin:

def __init__(
self,
directory: Union[str, Path],
directory: str | Path,
forever: bool = False,
filemode: int = 0o0600,
dirmode: int = 0o0700,
Expand Down
2 changes: 0 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

# SPDX-FileCopyrightText: 2015 Eric Larson
#
# SPDX-License-Identifier: Apache-2.0
Expand Down
4 changes: 2 additions & 2 deletions examples/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

HOST = "localhost"
PORT = 8050
URL = "http://{}:{}/".format(HOST, PORT)
URL = f"http://{HOST}:{PORT}/"


class Server(object):
class Server:

def __call__(self, env, sr):
body = "Hello World!"
Expand Down

0 comments on commit b77c7d5

Please sign in to comment.