From 8d3c1c59ad3b048d93fbb598b7d32db9902b9946 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 8 Sep 2008 18:36:15 +0000
Subject: [PATCH] decode string before splitting it.

---
 src/common/logger.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/common/logger.py b/src/common/logger.py
index 97e630e5ab..358fb3b3f7 100644
--- a/src/common/logger.py
+++ b/src/common/logger.py
@@ -722,8 +722,7 @@ class Logger:
 			#   ..., 'FEAT', feature1, feature2, ...).join(' '))
 			# NOTE: if there's a need to do more gzip, put that to a function
 			try:
-				data = GzipFile(fileobj=StringIO(str(data))).read().split('\0')
-				data = data.decode('utf-8')
+				data = GzipFile(fileobj=StringIO(str(data))).read().decode('utf-8').split('\0')
 			except IOError:
 				# This data is corrupted. It probably contains non-ascii chars
 				to_be_removed.append((hash_method, hash))
-- 
GitLab