~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-11 15:04:23 UTC
  • mfrom: (5848.1.1 2.4-cython-first)
  • Revision ID: pqm@pqm.ubuntu.com-20110511150423-tpm1ablukqalkvim
(jameinel) Default to using Cython for compiling code,
 rather than Pyrex. (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
    else:
119
119
        def canonicalize(self, path):
120
120
            if os.path.isabs(path):
121
 
                return osutils.normpath(path)
 
121
                return os.path.normpath(path)
122
122
            else:
123
 
                return osutils.normpath('/' + os.path.join(self.home, path))
 
123
                return os.path.normpath('/' + os.path.join(self.home, path))
124
124
 
125
125
    def chattr(self, path, attr):
126
126
        try:
553
553
 
554
554
    def get_url(self):
555
555
        """See bzrlib.transport.Server.get_url."""
556
 
        return self._get_sftp_url("%7E/")
 
556
        return self._get_sftp_url("~/")
557
557
 
558
558
 
559
559
class SFTPSiblingAbsoluteServer(SFTPAbsoluteServer):