MCPcopy
hub / github.com/RUB-NDS/PRET / do_exit

Method do_exit

printer.py:146–150  ·  view source on GitHub ↗
(self, *arg)

Source from the content-addressed store, hash-verified

144
145 # ------------------------[ exit ]------------------------------------
146 def do_exit(self, *arg):
147 # close logfile
148 if self.logfile:
149 log().close(self.logfile)
150 sys.exit()
151
152 # define alias but do not show alias in help
153 do_quit = do_exit

Callers 1

do_openMethod · 0.95

Calls 2

logClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected