This commit is contained in:
Erik Johnston 2015-08-11 11:33:41 +01:00
parent dc8399ee00
commit 4762c276cb
1 changed files with 9 additions and 0 deletions

View File

@ -241,6 +241,15 @@ class CacheListDescriptor(object):
"""
def __init__(self, orig, cache, list_name, num_args=1, inlineCallbacks=False):
"""
Args:
orig (function)
cache (Cache)
list_name (str): Name of the argument which is the bulk lookup list
num_args (int)
inlineCallbacks (bool): Whether orig is a generator that should
be wrapped by defer.inlineCallbacks
"""
self.orig = orig
if inlineCallbacks: