[Asterix] Fix caps

This commit is contained in:
Denis Fomin 2013-01-08 13:17:09 +04:00
parent 358e0a431b
commit 99c62442bb
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ import sys
import time import time
import datetime import datetime
from gzip import GzipFile from gzip import GzipFile
from io import BytesIO, StringIO from io import BytesIO
from gi.repository import GObject from gi.repository import GObject
from common import exceptions from common import exceptions
@ -924,7 +924,7 @@ class Logger:
data.extend(features) data.extend(features)
data = '\0'.join(data) data = '\0'.join(data)
# if there's a need to do more gzip, put that to a function # 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 = GzipFile(fileobj=string, mode='w')
gzip.write(data) gzip.write(data)
gzip.close() gzip.close()