From 6124e59d12dc14a5e3e311d223cfea0cdaa88fd3 Mon Sep 17 00:00:00 2001 From: Clovis NZOUENDJOU Date: Tue, 6 Nov 2018 07:56:27 +0100 Subject: [PATCH] Convert to str while bytes --- anybox/recipe/odoo/base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/anybox/recipe/odoo/base.py b/anybox/recipe/odoo/base.py index eda87a7c..fec7edc3 100644 --- a/anybox/recipe/odoo/base.py +++ b/anybox/recipe/odoo/base.py @@ -1229,7 +1229,11 @@ def freeze_to(self, out_config_path): # actually, that comment will be lost if this is not the # last part (dropped upon reread) else: - addons_option.append(' '.join((local_path, revision))) + if isinstance(revision, bytes): + addons_option.append(' '.join( + (local_path, revision.decode("utf-8")))) + else: + addons_option.append(' '.join((local_path, revision))) if addons_option: out_conf.set(self.name, 'revisions',