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

Method __exit__

utils/stopwatch.py:113–119  ·  view source on GitHub ↗
(self, type_, value, traceback)

Source from the content-addressed store, hash-verified

111 return self
112
113 def __exit__(self, type_, value, traceback):
114 # https://docs.python.org/2.7/reference/datamodel.html?highlight=__enter__#object.__exit__
115 # If the context was exited without an exception, all three arguments will be None
116 self.checkpoint('finished')
117 # ex: "type=None, value=None, traceback=None"
118 # print "type=%s, value=%s, traceback=%s" % (type, value, traceback)
119 return True
120
121 def __repr__(self):
122 return "elapsed record(ms): min=%s, max=%s" % self.stat

Callers

nothing calls this directly

Calls 1

checkpointMethod · 0.95

Tested by

no test coverage detected