From 99c62442bbe3936e1a2ca088a7e1f50c347d1e34 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Tue, 8 Jan 2013 13:17:09 +0400 Subject: [PATCH] [Asterix] Fix caps --- src/common/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/logger.py b/src/common/logger.py index effc16a03..cb755f77b 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -33,7 +33,7 @@ import sys import time import datetime from gzip import GzipFile -from io import BytesIO, StringIO +from io import BytesIO from gi.repository import GObject from common import exceptions @@ -924,7 +924,7 @@ class Logger: data.extend(features) data = '\0'.join(data) # if there's a need to do more gzip, put that to a function - string = StringIO() + string = BytesIO() gzip = GzipFile(fileobj=string, mode='w') gzip.write(data) gzip.close()