Mitch Garnaat
Committed by GitHub

Merge pull request #74 from wjo1212/develop

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