MCPcopy Index your code
hub / github.com/clips/pattern / read

Method read

pattern/web/imap/__init__.py:64–73  ·  view source on GitHub ↗

Read 'size' bytes from remote.

(self, size)

Source from the content-addressed store, hash-verified

62
63class IMAP4_SSL(imaplib.IMAP4_SSL):
64 def read(self, size):
65 """Read 'size' bytes from remote."""
66 # sslobj.read() sometimes returns < size bytes
67 chunks = []
68 read = 0
69 while read < size:
70 data = self.sslobj.read(min(size-read, 16384)) # use min() instead of max().
71 read += len(data)
72 chunks.append(data)
73 return ''.join(chunks)
74
75#### MAIL ##########################################################################################
76

Callers 15

getMethod · 0.45
do_keywordMethod · 0.45
_load_dataMethod · 0.45
pollMethod · 0.45
fillbufMethod · 0.45
revreadlinesMethod · 0.45
getdictFunction · 0.45
__init__Method · 0.45
__getitem__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
create_unicode_mapMethod · 0.45

Calls 2

lenFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected