diff options
| author | Barry Warsaw <barry@python.org> | 2000-09-01 06:09:23 +0000 | 
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 2000-09-01 06:09:23 +0000 | 
| commit | 100d81e8e3d06a82a6d9cefee209ac7862951720 (patch) | |
| tree | 904ce1f132a2927fe801fb15415e3144b84b0012 /Lib/test/test_pkg.py | |
| parent | e0d9a83bea5f78964217fd1f2dd82027841c9444 (diff) | |
| download | cpython-git-100d81e8e3d06a82a6d9cefee209ac7862951720.tar.gz | |
Added support for RFC 959's REST command (restart), closing SF patch
#101187, which some modifications.  Specifically,
ntransfercmd(), transfercmd(), and retrbinary() all grow an optional
`rest' argument, which if not None, is used as the argument to an FTP
REST comman dbefore the socket is returned.  Differences from the SF
patch:
- always compare against None with `is' or `is not' instead of == or !=
- no parens around conditional
- RFC 959 defines the argument to REST is a string containing any
  ASCII characters in the range [33..126].  Therefore, we use the %s
  format character instead of %f or %d as suggested in the patch's
  comments.  Note that we do /not/ sanity checkthe contents of the
  rest argument (but we'll document this in the library reference
  manual).
Diffstat (limited to 'Lib/test/test_pkg.py')
0 files changed, 0 insertions, 0 deletions
