提交 091bf71c authored 作者: Maxim Kochurov's avatar Maxim Kochurov 提交者: Maxim Kochurov

remove unused internal argument

上级 924e208a
...@@ -1158,7 +1158,7 @@ def _constructor_Function(maker, input_storage, inputs_data, trust_input=False): ...@@ -1158,7 +1158,7 @@ def _constructor_Function(maker, input_storage, inputs_data, trust_input=False):
if not config.unpickle_function: if not config.unpickle_function:
return None return None
f = maker.create(input_storage, trustme=True) f = maker.create(input_storage)
assert len(f.input_storage) == len(inputs_data) assert len(f.input_storage) == len(inputs_data)
for container, x in zip(f.input_storage, inputs_data): for container, x in zip(f.input_storage, inputs_data):
assert ( assert (
...@@ -1574,7 +1574,7 @@ class FunctionMaker: ...@@ -1574,7 +1574,7 @@ class FunctionMaker:
for i in self.inputs for i in self.inputs
] ]
def create(self, input_storage=None, trustme=False, storage_map=None): def create(self, input_storage=None, storage_map=None):
""" """
Create a function. Create a function.
...@@ -1584,9 +1584,6 @@ class FunctionMaker: ...@@ -1584,9 +1584,6 @@ class FunctionMaker:
A list matching the inputs list and providing default values if the A list matching the inputs list and providing default values if the
default for an input is None, then that input is a required input. default for an input is None, then that input is a required input.
For an input with an update, the default acts as initialization. For an input with an update, the default acts as initialization.
trustme
Disables some exceptions, used internally.
""" """
if input_storage is None: if input_storage is None:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论