[Python-checkins] CVS: python/dist/src/Tools/webchecker websucker.py,1.8,1.9
Guido van Rossum
python-dev@python.org
Tue, 25 Apr 2000 17:13:27 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Tools/webchecker
In directory eric:/projects/python/develop/guido/src/Tools/webchecker
Modified Files:
websucker.py
Log Message:
Patch inspired by Just van Rossum: on the Mac, in savefilename(), make
the path to save a relative path by prefixing it with os.sep (':').
Also fix an indent inconsistency in the same function.
Index: websucker.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Tools/webchecker/websucker.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** websucker.py 1999/11/17 15:40:48 1.8
--- websucker.py 2000/04/25 21:13:24 1.9
***************
*** 3,7 ****
"""A variant on webchecker that creates a mirror copy of a remote site."""
! __version__ = "$Revision: 1.8 $"
import os
--- 3,7 ----
"""A variant on webchecker that creates a mirror copy of a remote site."""
! __version__ = "$Revision: 1.9 $"
import os
***************
*** 96,102 ****
host = string.lower(host)
if not path or path[-1] == "/":
! path = path + "index.html"
if os.sep != "/":
path = string.join(string.split(path, "/"), os.sep)
path = os.path.join(host, path)
return path
--- 96,104 ----
host = string.lower(host)
if not path or path[-1] == "/":
! path = path + "index.html"
if os.sep != "/":
path = string.join(string.split(path, "/"), os.sep)
+ if os.name == "mac":
+ path = os.sep + path
path = os.path.join(host, path)
return path