Skip to content

Commit 7e95b8c

Browse files
committed
Reformatted to 79 characters per line instead of 80
1 parent 4410281 commit 7e95b8c

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

concurrency-overview/io_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ async def download_all_sites(sites):
1919

2020

2121
if __name__ == "__main__":
22-
sites = ["http://www.jython.org", "http://olympus.realpython.org/dice"] * 80
22+
sites = [
23+
"http://www.jython.org",
24+
"http://olympus.realpython.org/dice",
25+
] * 80
2326
start_time = time.time()
2427
asyncio.get_event_loop().run_until_complete(download_all_sites(sites))
2528
duration = time.time() - start_time

concurrency-overview/io_mp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ def download_all_sites(sites):
2424

2525

2626
if __name__ == "__main__":
27-
sites = ["http://www.jython.org", "http://olympus.realpython.org/dice"] * 80
27+
sites = [
28+
"http://www.jython.org",
29+
"http://olympus.realpython.org/dice",
30+
] * 80
2831
start_time = time.time()
2932
download_all_sites(sites)
3033
duration = time.time() - start_time

concurrency-overview/io_non_concurrent.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ def download_all_sites(sites):
1515

1616

1717
if __name__ == "__main__":
18-
sites = ["http://www.jython.org", "http://olympus.realpython.org/dice"] * 80
18+
sites = [
19+
"http://www.jython.org",
20+
"http://olympus.realpython.org/dice",
21+
] * 80
1922
start_time = time.time()
2023
download_all_sites(sites)
2124
duration = time.time() - start_time

concurrency-overview/io_threading.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ def download_all_sites(sites):
2626

2727

2828
if __name__ == "__main__":
29-
sites = ["http://www.jython.org", "http://olympus.realpython.org/dice"] * 80
29+
sites = [
30+
"http://www.jython.org",
31+
"http://olympus.realpython.org/dice",
32+
] * 80
3033
start_time = time.time()
3134
download_all_sites(sites)
3235
duration = time.time() - start_time

0 commit comments

Comments
 (0)