Skip to content

Commit 95b4076

Browse files
authored
Merge pull request #3 from brendonmackenzie/patch-2
Update f-string to use python 3.5 compatible .format
2 parents a6841e6 + 26bd2eb commit 95b4076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/04-asyncio/producer_consumer/prod_async/async_program.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async def generate_data(num: int, data: asyncio.Queue):
2929
item = idx*idx
3030
await data.put((item, datetime.datetime.now()))
3131

32-
print(colorama.Fore.YELLOW + f" -- generated item {idx}", flush=True)
32+
print(colorama.Fore.YELLOW + " -- generated item {}".format(idx), flush=True)
3333
await asyncio.sleep(random.random() + .5)
3434

3535

0 commit comments

Comments
 (0)