~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/__init__.py

  • Committer: Vincent LADEUIL
  • Date: 2006-08-31 10:33:01 UTC
  • mto: (1711.9.14 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1980.
  • Revision ID: v.ladeuil@alplog.fr-20060831103301-b37b408b2859e172
Fix Aaron's third review remarks.

* bzrlib/transport/http/__init__.py:
(HttpTransportBase.abspath): No tabs. I repeat *no* tabs.

* bzrlib/tests/test_transport_implementations.py:
(TransportTests.test_rmdir): Specify (NoSuchFile, PathError) as
awaited exception when rmdir failed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
            if relpath_parts[0] == '':
176
176
                raise ValueError("path %r within branch %r seems to be absolute"
177
177
                                 % (relpath, self._path))
178
 
            # read only transports never manipulate directories
 
178
            # read only transports never manipulate directories
179
179
            if self.is_readonly() and relpath_parts[-1] == '':
180
180
                raise ValueError("path %r within branch %r seems to be a directory"
181
181
                                 % (relpath, self._path))