MCPcopy Index your code
hub / github.com/pyload/pyload / write

Method write

module/plugins/hoster/UserscloudCom.py:22–33  ·  view source on GitHub ↗

writes response

(self, buf)

Source from the content-addressed store, hash-verified

20 HTTPRequest.__init__(self, cookies=cookies, options=options)
21
22 def write(self, buf):
23 """ writes response """
24 if self.limit and self.rep.tell() > self.limit or self.abort:
25 rep = self.getResponse()
26 if self.abort:
27 raise Abort()
28 f = open("response.dump", "wb")
29 f.write(rep)
30 f.close()
31 raise Exception("Loaded Url exceeded limit")
32
33 self.rep.write(buf)
34
35
36class UserscloudCom(SimpleHoster):

Callers

nothing calls this directly

Calls 3

AbortClass · 0.85
getResponseMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected