Skip to content

Commit 02d5992

Browse files
committed
Upgrade Python syntax with pyupgrade --py37-plus
1 parent cc7bca5 commit 02d5992

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

cachecontrol/caches/file_cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class _FileCacheMixin:
6464

6565
def __init__(
6666
self,
67-
directory: Union[str, Path],
67+
directory: str | Path,
6868
forever: bool = False,
6969
filemode: int = 0o0600,
7070
dirmode: int = 0o0700,

docs/conf.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# SPDX-FileCopyrightText: 2015 Eric Larson
42
#
53
# SPDX-License-Identifier: Apache-2.0

examples/benchmark.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
HOST = "localhost"
1515
PORT = 8050
16-
URL = "http://{}:{}/".format(HOST, PORT)
16+
URL = f"http://{HOST}:{PORT}/"
1717

1818

19-
class Server(object):
19+
class Server:
2020

2121
def __call__(self, env, sr):
2222
body = "Hello World!"

0 commit comments

Comments
 (0)