File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
2
#
4
3
# Documentation build configuration file, created by
5
4
# sphinx-quickstart on Sat Jan 21 19:11:14 2017.
Original file line number Diff line number Diff line change 1
- class AsyncLock ( object ) :
1
+ class AsyncLock :
2
2
...
3
3
4
4
5
- class AsyncSocket ( object ) :
5
+ class AsyncSocket :
6
6
def __init__ (self , send_lock : AsyncLock ):
7
7
...
8
8
Original file line number Diff line number Diff line change 1
- class SyncLock ( object ) :
1
+ class SyncLock :
2
2
...
3
3
4
4
5
- class SyncSocket ( object ) :
5
+ class SyncSocket :
6
6
def __init__ (self , send_lock : SyncLock ):
7
7
...
8
8
Original file line number Diff line number Diff line change 11
11
TEST_DIR = os .path .join (os .path .dirname (os .path .abspath (__file__ )), "data" )
12
12
ASYNC_DIR = os .path .join (TEST_DIR , "async" )
13
13
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" ))
15
15
16
16
17
17
def list_files (startpath ):
18
18
output = ""
19
19
for root , dirs , files in os .walk (startpath ):
20
20
level = root .replace (startpath , "" ).count (os .sep )
21
21
indent = " " * 4 * (level )
22
- output += "{}{}/" . format ( indent , os .path .basename (root ))
22
+ output += f" { indent } { os .path .basename (root )} /"
23
23
output += "\n "
24
24
subindent = " " * 4 * (level + 1 )
25
25
for f in files :
26
- output += "{}{}" . format ( subindent , f )
26
+ output += f" { subindent } { f } "
27
27
output += "\n "
28
28
return output
29
29
You can’t perform that action at this time.
0 commit comments