Skip to content

Commit

Permalink
Merge pull request #538 from Choirong/enhancement/f-string-Choirong
Browse files Browse the repository at this point in the history
fix : f-string formatting redis_cache.py
  • Loading branch information
sean-k1 authored Oct 16, 2023
2 parents 5c9325d + c494c7d commit 7262698
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/redis_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def main():
)

for binlogevent in stream:
prefix = "%s:%s:" % (binlogevent.schema, binlogevent.table)
prefix = (
f"{binlogevent.schema}:"
f"{binlogevent.table}:"
)

for row in binlogevent.rows:
if isinstance(binlogevent, DeleteRowsEvent):
Expand Down

0 comments on commit 7262698

Please sign in to comment.