From: Guido van Rossum Date: Tue, 25 Apr 2000 21:13:24 +0000 (+0000) Subject: Patch inspired by Just van Rossum: on the Mac, in savefilename(), make X-Git-Tag: v2.0b1~1940 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3335e193bd783ee8a57655091ea44a8b8f28c59;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Tools/webchecker/websucker.py b/Tools/webchecker/websucker.py index b416891455b9..5f726b36ce85 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