MCPcopy Create free account
hub / github.com/ActiveState/code / Stop

Method Stop

recipes/Python/579132_Print_Hook/recipe-579132.py:35–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33
34 #Stop will stop routing of print statements thru this class
35 def Stop(self):
36 self.origOut.flush()
37 if self.out:
38 sys.stdout = sys.__stdout__
39 else:
40 sys.stderr = sys.__stderr__
41 self.func = None
42
43 #override write of stdout
44 def write(self,text):

Callers 3

__del__Method · 0.45
recipe-579132.pyFile · 0.45
tickFunction · 0.45

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected