Rename "type" to "ctype" to work around a Python compiler bug.
authorAdam Sampson <ats@offog.org>
Wed, 30 Jul 2003 11:14:25 +0000 (11:14 +0000)
committerAdam Sampson <ats@offog.org>
Wed, 30 Jul 2003 11:14:25 +0000 (11:14 +0000)
rawdoglib/rawdog.py

index 850ce2ad9ddb0e186ee9dc963cf4dd56f09cab97..71d3878b250da3b39d20c5dc531b172e1f7f304e 100644 (file)
@@ -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: