diff options
author | Aarni Koskela <akx@iki.fi> | 2021-11-30 17:20:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 17:20:43 +0200 |
commit | fbe87acf96aab583975ed3371423eb20602eccaf (patch) | |
tree | b873c3356b9c96e826c4ab0bb3efc339a00838e4 /redis/commands/parser.py | |
parent | 4db85ef574a64a2b230a3ae1ff19c9d04065a114 (diff) | |
download | redis-py-fbe87acf96aab583975ed3371423eb20602eccaf.tar.gz |
Pyupgrade + flynt + f-strings (#1759)
@akx Thank you so much for this! Thanks again for introducing me to a new tool that I'm sliding into my workflow as well.
Diffstat (limited to 'redis/commands/parser.py')
-rw-r--r-- | redis/commands/parser.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/redis/commands/parser.py b/redis/commands/parser.py index d8b0327..26b190c 100644 --- a/redis/commands/parser.py +++ b/redis/commands/parser.py @@ -46,8 +46,9 @@ class CommandsParser: # version has changed, the commands may not be current self.initialize(redis_conn) if cmd_name not in self.commands: - raise RedisError("{0} command doesn't exist in Redis " - "commands".format(cmd_name.upper())) + raise RedisError( + f"{cmd_name.upper()} command doesn't exist in Redis commands" + ) command = self.commands.get(cmd_name) if 'movablekeys' in command['flags']: |