MCPcopy Index your code
hub / github.com/python/cpython / push

Method push

Lib/test/test_ftplib.py:87–93  ·  view source on GitHub ↗
(self, what)

Source from the content-addressed store, hash-verified

85 self.dtp_conn_closed = True
86
87 def push(self, what):
88 if self.baseclass.next_data is not None:
89 what = self.baseclass.next_data
90 self.baseclass.next_data = None
91 if not what:
92 return self.close_when_done()
93 super(DummyDTPHandler, self).push(what.encode(self.encoding))
94
95 def handle_error(self):
96 default_error_handler()

Callers 10

handle_closeMethod · 0.45
pushMethod · 0.45
cmd_retrMethod · 0.45
cmd_listMethod · 0.45
cmd_nlstMethod · 0.45
cmd_mlsdMethod · 0.45
cmd_authMethod · 0.45
cmd_cccMethod · 0.45
cmd_pbszMethod · 0.45
cmd_protMethod · 0.45

Calls 3

superClass · 0.85
close_when_doneMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected