Mercurial > cpython-lru_cache-weakref
diff setup.py @ 29002:50841898cc19 legacy-trunk
p.strip(os.sep) can't have possibly worked. It would have stripped both
leading and trailing '/' characters on Unix systems.
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Tue, 06 May 2003 20:59:57 +0000 |
| parents | 6c40b73c7045 |
| children | 157a29e19eb9 |
line wrap: on
line diff
--- a/setup.py Tue May 06 20:43:34 2003 +0000 +++ b/setup.py Tue May 06 20:59:57 2003 +0000 @@ -59,8 +59,7 @@ dirname = os.path.dirname(result) for p in std_dirs: # Ensure path doesn't end with path separator - if p.endswith(os.sep): - p = p.strip(os.sep) + p = p.rstrip(os.sep) if p == dirname: return [ ] @@ -68,8 +67,7 @@ # so we have to figure out which one. for p in paths: # Ensure path doesn't end with path separator - if p.endswith(os.sep): - p = p.strip(os.sep) + p = p.rstrip(os.sep) if p == dirname: return [p] else:
