Пример #1
0
def decode(data, colname=None):
    """Decode data coming out of storage."""
    if colname:
        return utils.decode(data[colname])
    return utils.decode(data)
Пример #2
0
 def get(self, url):
     result = self.client.get('hc-%s' % md5(url).hexdigest())
     return decode(result) if result else {}