Skip to content

Commit 7262698

Browse files
authored
Merge pull request #538 from Choirong/enhancement/f-string-Choirong
fix : f-string formatting redis_cache.py
2 parents 5c9325d + c494c7d commit 7262698

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/redis_cache.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ def main():
2727
)
2828

2929
for binlogevent in stream:
30-
prefix = "%s:%s:" % (binlogevent.schema, binlogevent.table)
30+
prefix = (
31+
f"{binlogevent.schema}:"
32+
f"{binlogevent.table}:"
33+
)
3134

3235
for row in binlogevent.rows:
3336
if isinstance(binlogevent, DeleteRowsEvent):

0 commit comments

Comments
 (0)