/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

Merge sftp-leaks into catch-them-all

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)]
456
456
            # Normalize the path or it will be wrongly escaped
457
457
            self._homedir = osutils.normpath(self._homedir)
458
458
        else:
459
 
            # But Linux SFTP servers should just deal in bytestreams
 
459
            # But unix SFTP servers should just deal in bytestreams
460
460
            self._homedir = os.getcwd()
461
461
        if self._server_homedir is None:
462
462
            self._server_homedir = self._homedir