[Asterix] Fix caps
This commit is contained in:
parent
358e0a431b
commit
99c62442bb
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue