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

Method write

recipes/Python/576887_Shared_Clipboard/recipe-576887.py:109–115  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

107 my_logger.debug(' %s: updated mtime "%s"' % (sys.platform, self.mtime))
108
109 def write(self, data):
110 my_logger.debug(' %s: opening clipboard_fn for write' % sys.platform)
111 fd = codecs.open(self.clipboard_fn, 'w', 'utf-8')
112 fd.write(data)
113 fd.close()
114 my_logger.debug(' %s: closed clipboard_fn for write' % sys.platform)
115 my_logger.debug(' %s: wrote "%s"' % (sys.platform, data))
116
117 def read(self):
118 my_logger.debug('%s: clipboard_fn updated, opening for read' % sys.platform)

Callers 10

output_htmlFunction · 0.45
recipe-576873.pyFile · 0.45
recipe-576837.pyFile · 0.45
monitorClipboardFunction · 0.45
printInfoPlayAudioFunction · 0.45
lockMethod · 0.45
DumpfileFunction · 0.45
GeneralInfoFunction · 0.45
recipe-576829.pyFile · 0.45
recipe-576812.pyFile · 0.45

Calls 3

debugMethod · 0.45
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected