summaryrefslogtreecommitdiff
path: root/python/src/_cdec.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/_cdec.pyx')
-rw-r--r--python/src/_cdec.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/src/_cdec.pyx b/python/src/_cdec.pyx
index af4e5f2f..5cdf8eb3 100644
--- a/python/src/_cdec.pyx
+++ b/python/src/_cdec.pyx
@@ -37,7 +37,7 @@ def _make_config(config):
for name in value:
yield key, name
else:
- yield key, bytes(value)
+ yield key, str(value)
cdef class Decoder:
cdef decoder.Decoder* dec
@@ -85,7 +85,7 @@ cdef class Decoder:
property formalism:
def __get__(self):
cdef variables_map* conf = &self.dec.GetConf()
- return conf[0]['formalism'].as_str().c_str()
+ return str(conf[0]['formalism'].as_str().c_str())
def read_weights(self, weights):
with open(weights) as fp: