From bc2672e7764f76c107fa63a3ad9994288c62ce65 Mon Sep 17 00:00:00 2001 From: tmeissner Date: Sun, 10 Mar 2013 10:56:28 +0100 Subject: [PATCH] port the dict queries processing to python2.6 * method viewkeys() not available in python2.6 * instead we iterate now with simple for-loop over queries dict --- scripts/abfahrtsmonitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/abfahrtsmonitor.py b/scripts/abfahrtsmonitor.py index edf72b8..0f32c09 100644 --- a/scripts/abfahrtsmonitor.py +++ b/scripts/abfahrtsmonitor.py @@ -27,7 +27,8 @@ validqueries = ["haltestelle.do", "abfahrten.do"] if (form.getvalue('query')): query = form.getvalue('query') -for key in queries.viewkeys(): +for key in queries: +#.viewkeys(): if (form.getvalue(key)): queries[key] = form.getvalue(key)