Skip to content

Commit 98d45b3

Browse files
committed
Run flynt and pyupgrade
1 parent 7d530a0 commit 98d45b3

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

docs/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
# -*- coding: utf-8 -*-
32
#
43
# Documentation build configuration file, created by
54
# sphinx-quickstart on Sat Jan 21 19:11:14 2017.

tests/data/async/classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
class AsyncLock(object):
1+
class AsyncLock:
22
...
33

44

5-
class AsyncSocket(object):
5+
class AsyncSocket:
66
def __init__(self, send_lock: AsyncLock):
77
...
88

tests/data/sync/classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
class SyncLock(object):
1+
class SyncLock:
22
...
33

44

5-
class SyncSocket(object):
5+
class SyncSocket:
66
def __init__(self, send_lock: SyncLock):
77
...
88

tests/test_unasync.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
TEST_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data")
1212
ASYNC_DIR = os.path.join(TEST_DIR, "async")
1313
SYNC_DIR = os.path.join(TEST_DIR, "sync")
14-
TEST_FILES = sorted([f for f in os.listdir(ASYNC_DIR) if f.endswith(".py")])
14+
TEST_FILES = sorted(f for f in os.listdir(ASYNC_DIR) if f.endswith(".py"))
1515

1616

1717
def list_files(startpath):
1818
output = ""
1919
for root, dirs, files in os.walk(startpath):
2020
level = root.replace(startpath, "").count(os.sep)
2121
indent = " " * 4 * (level)
22-
output += "{}{}/".format(indent, os.path.basename(root))
22+
output += f"{indent}{os.path.basename(root)}/"
2323
output += "\n"
2424
subindent = " " * 4 * (level + 1)
2525
for f in files:
26-
output += "{}{}".format(subindent, f)
26+
output += f"{subindent}{f}"
2727
output += "\n"
2828
return output
2929

0 commit comments

Comments
 (0)