[extensions-web] python3: fixed diff view in review



commit c395f7442d726d9bcc0b78913292976bc440b564
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Tue Nov 26 21:42:24 2019 +0400

    python3: fixed diff view in review

 sweettooth/review/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index 373dec4..6de1266 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -120,7 +120,7 @@ def grab_lines(zipfile, filename):
     except KeyError:
         return None
     else:
-        content = f.read()
+        content = f.read().decode('utf-8')
         f.close()
         return content.splitlines()
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]