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

Method set_pasv

Lib/ftplib.py:181–185  ·  view source on GitHub ↗

Use passive or active mode for data transfers. With a false argument, use the normal PORT mode, With a true argument, use the PASV command.

(self, val)

Source from the content-addressed store, hash-verified

179 debug = set_debuglevel
180
181 def set_pasv(self, val):
182 '''Use passive or active mode for data transfers.
183 With a false argument, use the normal PORT mode,
184 With a true argument, use the PASV command.'''
185 self.passiveserver = val
186
187 # Internal: "sanitize" a string for printing
188 def sanitize(self, s):

Callers 3

testFunction · 0.95
test_set_pasvMethod · 0.80
test_transferMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_set_pasvMethod · 0.64
test_transferMethod · 0.64