~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-08 07:05:00 UTC
  • mfrom: (3376.2.15 no-asserts)
  • Revision ID: pqm@pqm.ubuntu.com-20080508070500-9zyyvsk0eev20t4w
(mbp) remove and disallow assert statements

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
            dirname = dirname.encode(sys.getfilesystemencoding())
390
390
            # python's tarball module includes the whole path by default so
391
391
            # override it
392
 
            assert dirname.endswith('.bzr')
 
392
            if not dirname.endswith('.bzr'):
 
393
                raise ValueError(dirname)
393
394
            tarball.add(dirname, '.bzr') # recursive by default
394
395
        finally:
395
396
            tarball.close()