changeset acd4bc0ae799 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=acd4bc0ae799 description: fix caps
diffstat:
src/common/logger.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r e56c75b2913b -r acd4bc0ae799 src/common/logger.py --- a/src/common/logger.py Fri Jan 11 01:54:53 2013 +0400 +++ b/src/common/logger.py Fri Jan 11 13:34:49 2013 +0400 @@ -926,13 +926,13 @@ # if there's a need to do more gzip, put that to a function string = BytesIO() gzip = GzipFile(fileobj=string, mode='w') - gzip.write(data) + gzip.write(data.encode('utf-8')) gzip.close() data = string.getvalue() self.cur.execute(''' INSERT INTO caps_cache ( hash_method, hash, data, last_seen ) VALUES (?, ?, ?, ?); - ''', (hash_method, hash_, buffer(data), int(time.time()))) + ''', (hash_method, hash_, memoryview(data), int(time.time()))) # (1) -- note above self._timeout_commit()