MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / close

Method close

dshell/output/output.py:140–145  ·  view source on GitHub ↗

Close output file, assuming it's not stdout

(self)

Source from the content-addressed store, hash-verified

138 pass
139
140 def close(self):
141 """
142 Close output file, assuming it's not stdout
143 """
144 if self.fh not in (sys.stdout, sys.stdout.buffer):
145 self.fh.close()
146
147 # NOTE: Output modules no longer handles logging. Logging should be done by creating a logger
148 # at the top of each of the modules.

Callers 2

mainFunction · 0.45
_postmoduleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected