Add inspection exception to ignore reassignment of self

This commit is contained in:
Ebag333
2016-10-19 12:11:30 -07:00
parent 1dc15936ed
commit 74ce79ba8f

View File

@@ -480,6 +480,8 @@ class Fit(object):
if self == targetFit:
copied = self # original fit
shadow = True
# Don't inspect this, we genuinely want to reassign self
# noinspection PyMethodFirstArgAssignment
self = copy.deepcopy(self)
self.fleet = copied.fleet
logger.debug("Handling self projection - making shadow copy of fit. %r => %r", copied, self)