Fix #2076 - use collection ABCs from .abc module
This commit is contained in:
@@ -17,7 +17,8 @@
|
|||||||
# along with eos. If not, see <http://www.gnu.org/licenses/>.
|
# along with eos. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# ===============================================================================
|
# ===============================================================================
|
||||||
|
|
||||||
import collections
|
|
||||||
|
from collections import MutableMapping
|
||||||
from copy import copy
|
from copy import copy
|
||||||
from math import exp
|
from math import exp
|
||||||
|
|
||||||
@@ -96,7 +97,7 @@ class ChargeAttrShortcut:
|
|||||||
return return_value or default
|
return return_value or default
|
||||||
|
|
||||||
|
|
||||||
class ModifiedAttributeDict(collections.MutableMapping):
|
class ModifiedAttributeDict(MutableMapping):
|
||||||
overrides_enabled = False
|
overrides_enabled = False
|
||||||
|
|
||||||
class CalculationPlaceholder:
|
class CalculationPlaceholder:
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
|
|
||||||
import collections
|
|
||||||
import json
|
import json
|
||||||
|
from collections import defaultdict
|
||||||
|
|
||||||
from logbook import Logger
|
from logbook import Logger
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ def exportESI(ofit, callback):
|
|||||||
# max fit name length is 50 characters
|
# max fit name length is 50 characters
|
||||||
# Most keys are created simply because they are required, but bogus data is okay
|
# Most keys are created simply because they are required, but bogus data is okay
|
||||||
|
|
||||||
nested_dict = lambda: collections.defaultdict(nested_dict)
|
nested_dict = lambda: defaultdict(nested_dict)
|
||||||
fit = nested_dict()
|
fit = nested_dict()
|
||||||
sFit = svcFit.getInstance()
|
sFit = svcFit.getInstance()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user