LaiQiang Ding

fix #73

...@@ -97,7 +97,10 @@ class Context(object): ...@@ -97,7 +97,10 @@ class Context(object):
97 yaml.dump(self.cache, fp) 97 yaml.dump(self.cache, fp)
98 98
99 def get_cache_value(self, key): 99 def get_cache_value(self, key):
100 - return self.cache.setdefault(self.environment, dict()).get(key) 100 + ret = self.cache.setdefault(self.environment, dict()).get(key)
101 + if ret is not None:
102 + return ret.decode('utf8')
103 + return ret
101 104
102 def set_cache_value(self, key, value): 105 def set_cache_value(self, key, value):
103 self.cache.setdefault( 106 self.cache.setdefault(
......