Skip to content

Commit a6841e6

Browse files
authored
Merge pull request #2 from brendonmackenzie/patch-1
Update f-string to use python 3.5 compatible .format
2 parents 9f7a2cf + cf02eaa commit a6841e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/04-asyncio/producer_consumer/prod_sync/sync_program.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def generate_data(num: int, data: list):
2020
item = idx*idx
2121
data.append((item, datetime.datetime.now()))
2222

23-
print(colorama.Fore.YELLOW + f" -- generated item {idx}", flush=True)
23+
print(colorama.Fore.YELLOW + " -- generated item {}".format(idx), flush=True)
2424
time.sleep(random.random() + .5)
2525

2626

0 commit comments

Comments
 (0)