mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Don't include opts in any public argument lists. It is used internally only.
This commit is contained in:
@@ -243,6 +243,9 @@ class ModXMLRPCRequestHandler(object):
|
||||
for x in range(0, func.func_code.co_argcount):
|
||||
if x == 0 and func.func_code.co_varnames[x] == "self":
|
||||
continue
|
||||
# opts is a name we tack on internally. Don't publish it.
|
||||
if func.func_code.co_varnames[x] == "opts":
|
||||
continue
|
||||
if func.func_defaults and func.func_code.co_argcount - x <= len(func.func_defaults):
|
||||
args.append((func.func_code.co_varnames[x], func.func_defaults[x - func.func_code.co_argcount + len(func.func_defaults)]))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user