Commit da95e17a authored by Gordian Edenhofer's avatar Gordian Edenhofer
Browse files Avoid python native variable name

parent 0dd7b3b2
......@@ -37,12 +37,12 @@ class MultiDomain(object):
_domainCache = {}
def __init__(self, dict, _callingfrommake=False):
def __init__(self, dct, _callingfrommake=False):
if not _callingfrommake:
raise NotImplementedError(
'To create a MultiDomain call `MultiDomain.make()`.')
self._keys = tuple(sorted(dict.keys()))
self._domains = tuple(dict[key] for key in self._keys)
self._keys = tuple(sorted(dct.keys()))
self._domains = tuple(dct[key] for key in self._keys)
self._idx = frozendict({key: i for i, key in enumerate(self._keys)})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment