summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-04-25 21:13:24 (GMT)
committerGuido van Rossum <guido@python.org>2000-04-25 21:13:24 (GMT)
commitf3335e193bd783ee8a57655091ea44a8b8f28c59 (patch)
tree36a8022339768be6b67895d0702f08905e61b2bd
parentc009d198db67d197c8c78451b28e15302646de74 (diff)
downloadcpython-f3335e193bd783ee8a57655091ea44a8b8f28c59.zip
cpython-f3335e193bd783ee8a57655091ea44a8b8f28c59.tar.gz
cpython-f3335e193bd783ee8a57655091ea44a8b8f28c59.tar.bz2
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.
-rwxr-xr-xTools/webchecker/websucker.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/webchecker/websucker.py b/Tools/webchecker/websucker.py
index b416891..5f726b3 100755
--- a/Tools/webchecker/websucker.py
+++ b/Tools/webchecker/websucker.py
@@ -95,9 +95,11 @@ class Sucker(webchecker.Checker):
host, port = urllib.splitnport(host)
host = string.lower(host)
if not path or path[-1] == "/":
- path = path + "index.html"
+ 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