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

Method read

recipes/Python/576887_Shared_Clipboard/recipe-576887.py:117–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)
119 fd = codecs.open(self.clipboard_fn, 'r', 'utf-8')
120 data = fd.read()
121 my_logger.debug(" %s: getting data = '%s'" % (sys.platform, data))
122 fd.close()
123 my_logger.debug(' %s: closed clipboard_fn for read' % sys.platform)
124 return data
125
126clipboard_file = File(clipboard_fn)
127

Callers 15

convert_fileFunction · 0.45
__init__Method · 0.45
recipe-576859.pyFile · 0.45
recipe-576841.pyFile · 0.45
recipe-576810.pyFile · 0.45
linesMethod · 0.45
recipe-576873.pyFile · 0.45
colsFunction · 0.45
linesFunction · 0.45
get_imageFunction · 0.45
recipe-576541.pyFile · 0.45
GetHashofDirsFunction · 0.45

Calls 3

debugMethod · 0.45
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected