From 827674c85d4804f27b371e99e837d3bcef71a7da Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 21 Aug 2009 17:40:42 +0200 Subject: [PATCH] dont return buffer --- oxlib/cache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oxlib/cache.py b/oxlib/cache.py index 27ca67e..48ca3db 100644 --- a/oxlib/cache.py +++ b/oxlib/cache.py @@ -140,6 +140,8 @@ def _getUrlCache(url, data, headers=DEFAULT_HEADERS, timeout=-1, value="data"): c.execute(sql, t) for row in c: r = row[0] + if value == 'data': + r = str(r) break c.close()