diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-09-30 10:54:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 10:54:07 +0300 |
commit | cf3973237205d4bcd74d7cf22889ff10aac35539 (patch) | |
tree | 5dd9b8fd90c0a211225d85a75921c5cdbf072e5e /redis/commands.py | |
parent | 491c938f9c6ea56fb0b3403be63168e6930709ae (diff) | |
download | redis-py-cf3973237205d4bcd74d7cf22889ff10aac35539.tar.gz |
Supporting args with MODULE LOAD (#1579)
Part of #1546
Diffstat (limited to 'redis/commands.py')
-rw-r--r-- | redis/commands.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/redis/commands.py b/redis/commands.py index 5f1f57b..92a9959 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -3081,12 +3081,14 @@ class Commands: return self.execute_command(command, *pieces, **kwargs) # MODULE COMMANDS - def module_load(self, path): + def module_load(self, path, *args): """ Loads the module from ``path``. Raises ``ModuleError`` if a module is not found at ``path``. """ - return self.execute_command('MODULE LOAD', path) + pieces = list(args) + pieces.insert(0, path) + return self.execute_command('MODULE LOAD', *pieces) def module_unload(self, name): """ |