From c31207f7e63e24fbe4e04cb442a4f471e2f49e70 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Wed, 30 Jul 2003 11:14:25 +0000 Subject: [PATCH] Rename "type" to "ctype" to work around a Python compiler bug. --- rawdoglib/rawdog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.35.1