Changeset 155

Show
Ignore:
Timestamp:
2002-04-01 13:45:11 (7 years ago)
Author:
schwa
Message:
MockSession._remove_trailing_slash: retain single slash denoting the
    root directory.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/_mock_ftplib.py

    r153 r155  
    3030# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    3131 
    32 # $Id: _mock_ftplib.py,v 1.17 2002/04/01 13:05:04 schwa Exp $ 
     32# $Id: _mock_ftplib.py,v 1.18 2002/04/01 13:45:11 schwa Exp $ 
    3333 
    3434""" 
     
    133133 
    134134    def _remove_trailing_slash(self, path): 
    135         if path.endswith('/'): 
     135        if path != '/' and path.endswith('/'): 
    136136            path = path[:-1] 
    137137        return path