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

Method save_log

recipes/Python/577280_Holiday_Leave/recipe-577280.py:78–84  ·  view source on GitHub ↗

Save the view into some pickle file.

(cls)

Source from the content-addressed store, hash-verified

76
77 @classmethod
78 def save_log(cls):
79 """
80 Save the view into some pickle file.
81 """
82 output = open(STATIC_P, 'wb')
83 pickle.dump(Log.history, output, protocol=PROTOCOL)
84 output.close()
85
86
87class Operate(argparse.Action):

Callers 1

__call__Method · 0.80

Calls 3

openFunction · 0.50
dumpMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected