Fix another hidden import (move to top)

This commit is contained in:
Ebag333
2017-03-13 11:09:12 -07:00
parent b72304203c
commit af5a9b31bc

View File

@@ -19,6 +19,7 @@
import collections
from math import exp
from eos.db.gamedata.queries import getAttributeInfo
defaultValuesCache = {}
cappingAttrKeyCache = {}
@@ -172,7 +173,6 @@ class ModifiedAttributeDict(collections.MutableMapping):
try:
cappingKey = cappingAttrKeyCache[key]
except KeyError:
from eos.db.gamedata.queries import getAttributeInfo
attrInfo = getAttributeInfo(key)
if attrInfo is None:
cappingId = cappingAttrKeyCache[key] = None
@@ -209,7 +209,6 @@ class ModifiedAttributeDict(collections.MutableMapping):
try:
default = defaultValuesCache[key]
except KeyError:
from eos.db.gamedata.queries import getAttributeInfo
attrInfo = getAttributeInfo(key)
if attrInfo is None:
default = defaultValuesCache[key] = 0.0