From: Adam Sampson Date: Wed, 30 Jul 2003 11:14:25 +0000 (+0000) Subject: Rename "type" to "ctype" to work around a Python compiler bug. X-Git-Tag: v1.2~2 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=c31207f7e63e24fbe4e04cb442a4f471e2f49e70;p=rawdog%2F.git Rename "type" to "ctype" to work around a Python compiler bug. --- diff --git a/rawdoglib/rawdog.py b/rawdoglib/rawdog.py index 850ce2a..71d3878 100644 --- a/rawdoglib/rawdog.py +++ b/rawdoglib/rawdog.py @@ -33,9 +33,9 @@ def select_content(contents): preferred = ["text/html", "application/xhtml+xml"] cs = [] for c in contents: - type = c["type"] - if type in preferred: - score = preferred.index(type) + ctype = c["type"] + if ctype in preferred: + score = preferred.index(ctype) cs.append((score, c["value"])) cs.sort() if len(cs) == 0: