Using the CloudApi didn't work as parms and self were passed on as part

of the request. Making parms a copy of the locals() dict will prevent it
from being changed later on.
RB: https://reviews.apache.org/r/5828/
Send-by: htrippaers@schubergphilis.com
This commit is contained in:
Edison Su 2012-07-24 14:07:07 -07:00
parent 576d093e9c
commit b7d4e54317

View File

@ -167,7 +167,7 @@ def load_dynamic_methods():
code = """
def %s(%s):
%s
parms = locals()
parms = dict(locals())
del parms["self"]
for arg in %r:
if locals()[arg] is None: