Skip to content

Commit 14591ab

Browse files
committed
Finished converting all the single-quote strings to double-quote, and cleaned up some comment lines
1 parent 5da6c87 commit 14591ab

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

understanding-asynchronous-programming/example_1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ def main():
1818
"""
1919
This is the main entry point for the program
2020
"""
21-
# Create the queue of 'work'
21+
# Create the queue of work
2222
work_queue = queue.Queue()
2323

24-
# Put some 'work' in the queue
24+
# Put some work in the queue
2525
for work in [15, 10, 5, 2]:
2626
work_queue.put(work)
2727

understanding-asynchronous-programming/example_2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def main():
1616
"""
1717
This is the main entry point for the program
1818
"""
19-
# Create the queue of 'work'
19+
# Create the queue of work
2020
work_queue = queue.Queue()
2121

22-
# Put some 'work' in the queue
22+
# Put some work in the queue
2323
for work in [15, 10, 5, 2]:
2424
work_queue.put(work)
2525

understanding-asynchronous-programming/example_3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def main():
1818
"""
1919
This is the main entry point for the program
2020
"""
21-
# Create the queue of "work"
21+
# Create the queue of work
2222
work_queue = queue.Queue()
2323

2424
# Put some work in the queue

understanding-asynchronous-programming/example_4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ async def main():
1616
"""
1717
This is the main entry point for the program
1818
"""
19-
# Create the queue of "work"
19+
# Create the queue of work
2020
work_queue = asyncio.Queue()
2121

22-
# Put some "work" in the queue
22+
# Put some work in the queue
2323
for work in [15, 10, 5, 2]:
2424
await work_queue.put(work)
2525

understanding-asynchronous-programming/example_5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ def main():
1919
"""
2020
This is the main entry point for the program
2121
"""
22-
# Create the queue of "work"
22+
# Create the queue of work
2323
work_queue = queue.Queue()
2424

25-
# Put some "work" in the queue
25+
# Put some work in the queue
2626
for url in [
2727
"http://google.com",
2828
"http://yahoo.com",

understanding-asynchronous-programming/example_6.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ async def main():
1919
"""
2020
This is the main entry point for the program
2121
"""
22-
# Create the queue of 'work'
22+
# Create the queue of "work"
2323
work_queue = asyncio.Queue()
2424

25-
# Put some 'work' in the queue
25+
# Put some "work" in the queue
2626
for url in [
2727
"http://google.com",
2828
"http://yahoo.com",
@@ -35,7 +35,7 @@ async def main():
3535
await work_queue.put(url)
3636

3737
# Run the tasks
38-
with Timer(text='\nTotal elapsed time: {:.1f}'):
38+
with Timer(text="\nTotal elapsed time: {:.1f}"):
3939
await asyncio.gather(
4040
asyncio.create_task(task("One", work_queue)),
4141
asyncio.create_task(task("Two", work_queue))

0 commit comments

Comments
 (0)