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

Method __menu

recipes/Python/492215_diskdemopy/recipe-492215.py:308–312  ·  view source on GitHub ↗
(self, context, path, mode)

Source from the content-addressed store, hash-verified

306
307 # Display A Menu
308 def __menu(self, context, path, mode):
309 file_object = context.file(path, mode)
310 data = self.__edit()
311 file_object.write(data)
312 file_object.close(False)
313
314 # Get New Lines
315 def __edit(self):

Callers 1

__init__Method · 0.95

Calls 4

__editMethod · 0.95
fileMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected