Skip to content

Commit 0758e12

Browse files
committed
Use automatic formatters
1 parent c47be6f commit 0758e12

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cachecontrol/serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def loads(self, request, data):
9595

9696
# Dispatch to the actual load method for the given version
9797
try:
98-
return getattr(self, "_loads_v{0}".format(ver))(request, data)
98+
return getattr(self, "_loads_v{}".format(ver))(request, data)
9999
except AttributeError:
100100
# This is a version we don't have a loads function for, so we'll
101101
# just treat it as a miss and return None

examples/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
HOST = 'localhost'
1111
PORT = 8050
12-
URL = 'http://{0}:{1}/'.format(HOST, PORT)
12+
URL = 'http://{}:{}/'.format(HOST, PORT)
1313

1414

1515
class Server(object):

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def vary_accept(self, env, start_response):
4848

4949
def update_etag_string(self):
5050
self.etag_count += 1
51-
self.etag_string = '"ETAG-{0}"'.format(self.etag_count)
51+
self.etag_string = '"ETAG-{}"'.format(self.etag_count)
5252

5353
def update_etag(self, env, start_response):
5454
self.update_etag_string()

tests/test_storage_filecache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def randomdata():
1919
key = ''.join(sample(string.ascii_lowercase, randint(2, 4)))
2020
val = ''.join(sample(string.ascii_lowercase + string.digits,
2121
randint(2, 10)))
22-
return '&{0}={1}'.format(key, val)
22+
return '&{}={}'.format(key, val)
2323

2424

2525
class TestStorageFileCache(object):

0 commit comments

Comments
 (0)