From 1a0f9f5b9b5d5832dbc472075fa080b5278a751e Mon Sep 17 00:00:00 2001
From: Andrew Waterhouse <andrew.waterhouse@unibas.ch>
Date: Mon, 30 Dec 2019 10:35:07 +0100
Subject: [PATCH] decode subprocess sout

---
 modules/bindings/pymod/hhblits.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/bindings/pymod/hhblits.py b/modules/bindings/pymod/hhblits.py
index 5567dd229..23d267518 100644
--- a/modules/bindings/pymod/hhblits.py
+++ b/modules/bindings/pymod/hhblits.py
@@ -667,7 +667,8 @@ class HHblits:
         job = subprocess.Popen(cs_cmd, shell=True, cwd=self.working_dir,
                                stdout=subprocess.PIPE, stderr=subprocess.PIPE)
         sout, _ = job.communicate()
-        if b'Wrote abstract state sequence to' in sout:
+        lines = sout.decode()
+        if 'Wrote abstract state sequence to' in sout:
             return cs_file
 
         ost.LogWarning('Creating column state sequence file (%s) failed' % \
-- 
GitLab