MCPcopy Create free account
hub / github.com/mhammond/pywin32 / OutputRelease

Method OutputRelease

Pythonwin/pywin/framework/interact.py:437–447  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

435 self.flush()
436
437 def OutputRelease(self):
438 # a command may have overwritten these - only restore if not.
439 if self.oldStdOut is not None:
440 if sys.stdout == self:
441 sys.stdout=self.oldStdOut
442 if self.oldStdErr is not None:
443 if sys.stderr == self:
444 sys.stderr=self.oldStdErr
445 self.oldStdOut = None
446 self.oldStdErr = None
447 self.flush()
448
449 ###################################
450 #

Callers 2

ProcessEnterEventMethod · 0.95
OnViewDestroyMethod · 0.80

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected