~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Alexander Belchenko
  • Date: 2007-09-25 19:41:00 UTC
  • mfrom: (2862 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2866.
  • Revision ID: bialix@ukr.net-20070925194100-zw5hcmc85hf3m0uf
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
        """
407
407
        assert not isinstance(from_file, basestring), \
408
408
            '_pump should only be called on files not %s' % (type(from_file,))
409
 
        osutils.pumpfile(from_file, to_file)
 
409
        return osutils.pumpfile(from_file, to_file)
410
410
 
411
411
    def _get_total(self, multi):
412
412
        """Try to figure out how many entries are in multi,
794
794
        :param f:       File-like object.
795
795
        :param mode: The mode for the newly created file,
796
796
                     None means just use the default.
 
797
        :return: The length of the file that was written.
797
798
        """
798
799
        # We would like to mark this as NotImplemented, but most likely
799
800
        # transports have defined it in terms of the old api.