~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: 2010-06-03 03:18:53 UTC
  • mfrom: (5278.1.5 gnuness)
  • Revision ID: pqm@pqm.ubuntu.com-20100603031853-rzypooksqjaonb9m
(mbp) avoid inaccurate use of "linux" or non-gnu-compliant "open source"
 (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        try:
136
136
            out = [ ]
137
137
            # TODO: win32 incorrectly lists paths with non-ascii if path is not
138
 
            # unicode. However on Linux the server should only deal with
 
138
            # unicode. However on unix the server should only deal with
139
139
            # bytestreams and posix.listdir does the right thing
140
140
            if sys.platform == 'win32':
141
141
                flist = [f.encode('utf8') for f in os.listdir(path)]
452
452
            # Normalize the path or it will be wrongly escaped
453
453
            self._homedir = osutils.normpath(self._homedir)
454
454
        else:
455
 
            # But Linux SFTP servers should just deal in bytestreams
 
455
            # But unix SFTP servers should just deal in bytestreams
456
456
            self._homedir = os.getcwd()
457
457
        if self._server_homedir is None:
458
458
            self._server_homedir = self._homedir