From: Fredrik Tolf Date: Sun, 5 Aug 2012 16:08:59 +0000 (+0200) Subject: Changed some whitespace usage. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=e21c438203ce0654499264e31bd673ee924e6254;p=wrw.git Changed some whitespace usage. --- diff --git a/wrw/proto.py b/wrw/proto.py index aed5c4e..3d8b96e 100644 --- a/wrw/proto.py +++ b/wrw/proto.py @@ -113,7 +113,7 @@ def parseurl(url): local = local[:q] return proto, host, local, query -def consurl(proto, host, local, query = ""): +def consurl(proto, host, local, query=""): if len(local) < 1 and local[0] != '/': raise urlerror("Local part of URL must begin with a slash") ret = "%s://%s%s" % (proto, host, local) @@ -142,7 +142,7 @@ def requrl(req): raise Exception("Malformed local part when reconstructing URL") return "%s://%s%s" % (proto, host, req.uri) -def parstring(pars = {}, **augment): +def parstring(pars={}, **augment): buf = "" for key in pars: if key in augment: @@ -157,7 +157,7 @@ def parstring(pars = {}, **augment): buf += urlq(key) + "=" + urlq(str(augment[key])) return buf -def parurl(url, pars = {}, **augment): +def parurl(url, pars={}, **augment): qs = parstring(pars, **augment) if qs != "": return url + "?" + qs