Skip to content

Commit c494c7d

Browse files
committed
fix : f-string formatting redis_cache.py
1 parent 6fe86c0 commit c494c7d

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)