~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: John Arbash Meinel
  • Date: 2007-06-29 16:16:46 UTC
  • mto: This revision was merged to the branch mainline in revision 2614.
  • Revision ID: john@arbash-meinel.com-20070629161646-ufelk4s0m1ig5md8
Don't suppress the TypeError if it doesn't match our requirements.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Server-side repository related request implmentations."""
18
18
 
19
 
import os
20
19
import sys
21
20
import tempfile
22
21
import tarfile
224
223
            temp.close()
225
224
 
226
225
    def _tarball_of_dir(self, dirname, compression, ofile):
227
 
        filename = os.path.basename(ofile.name)
228
 
        tarball = tarfile.open(fileobj=ofile, name=filename,
229
 
            mode='w|' + compression)
 
226
        tarball = tarfile.open(fileobj=ofile, mode='w|' + compression)
230
227
        try:
231
228
            # The tarball module only accepts ascii names, and (i guess)
232
229
            # packs them with their 8bit names.  We know all the files