MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __enter__

Method __enter__

service/fit.py:48–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 self.sFit = Fit.getInstance()
47
48 def __enter__(self):
49 self._recalc = self.sFit.recalc
50 self.sFit.recalc = lambda x: pyfalog.debug('Deferred Recalc')
51
52 def __exit__(self, *args):
53 self.sFit.recalc = self._recalc

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected