projects
/
rawdog
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38f32c8
)
Rename "type" to "ctype" to work around a Python compiler bug.
author
Adam Sampson
<ats@offog.org>
Wed, 30 Jul 2003 11:14:25 +0000
(11:14 +0000)
committer
Adam Sampson
<ats@offog.org>
Wed, 30 Jul 2003 11:14:25 +0000
(11:14 +0000)
rawdoglib/rawdog.py
patch
|
blob
|
history
diff --git
a/rawdoglib/rawdog.py
b/rawdoglib/rawdog.py
index 850ce2ad9ddb0e186ee9dc963cf4dd56f09cab97..71d3878b250da3b39d20c5dc531b172e1f7f304e 100644
(file)
--- 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)
+
c
type = c["type"]
+ if
c
type in preferred:
+ score = preferred.index(
c
type)
cs.append((score, c["value"]))
cs.sort()
if len(cs) == 0: