Skip to content

Commit

Permalink
Update alt_key_builder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Feb 27, 2023
1 parent 6c4780e commit ce2f26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/alt_key_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def demo_key_builders():
# 1. Custom ``key_builder`` for a cache
# -------------------------------------

def ensure_no_spaces(key, namespace, replace='_'):
def ensure_no_spaces(key, namespace, replace="_"):
"""Prefix key with namespace; replace each space with ``replace``"""
aggregate_key = f"{namespace}{key}"
custom_key = aggregate_key.replace(' ', replace)
Expand Down

0 comments on commit ce2f26a

Please sign in to comment.