~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 3508.1.4.

Ensure that ftp transport are always in binary mode.

* bzrlib/transport/ftp/__init__.py:
(FtpStatResult.__init__): Rename 'relpath' parameter to 'baspath'
as this is really midsleading.
(FtpTransport._create_connection): Set binary mode from the start.
(FtpTransport.list_dir): Restore binary mode as ftplib.lnst
doesn't.
(FtpTransport._try_append): No need to force binary mode anymore.

* bzrlib/tests/test_transport_implementations.py:
(TransportTests.test_connect_twice_is_same_content): Mention that
the test is brittle.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: