Skip to content

Commit 0340f1b

Browse files
committed
no reason to pre-load scripts in __init__. defer until __call__
1 parent bee60a6 commit 0340f1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2424,7 +2424,7 @@ class Script(object):
24242424
def __init__(self, registered_client, script):
24252425
self.registered_client = registered_client
24262426
self.script = script
2427-
self.sha = registered_client.script_load(script)
2427+
self.sha = ''
24282428

24292429
def __call__(self, keys=[], args=[], client=None):
24302430
"Execute the script, passing any required ``args``"

0 commit comments

Comments
 (0)