correct the values list append tls-sprint
authorGraziella Toutoungis <graziella.toutoungis@logilab.fr>
Mon, 11 May 2009 09:56:21 +0200
branchtls-sprint
changeset 1718 26ff2d292183
parent 1717 d2c4d3bd0602
child 1719 bf26f32c8a72
correct the values list append
web/request.py
--- a/web/request.py	Mon May 11 08:02:49 2009 +0200
+++ b/web/request.py	Mon May 11 09:56:21 2009 +0200
@@ -623,7 +623,7 @@
                             score = float(score[2:]) # remove 'q='
                     except ValueError:
                         continue
-            values.append(value, score)
+            values.append((score, value))
         values.sort(reverse=True)
         return (value for (score, value) in values)