def get_storage_hash(storage):
 if isinstance(storage, LazyObject):
  if (storage._wrapped is None):
   storage._setup()
  storage = storage._wrapped
 if (not isinstance(storage, six.string_types)):
  storage_cls = storage.__class__
  storage = ('%s.%s' % (storage_cls.__module__, storage_cls.__name__))
 return hashlib.md5(storage.encode('utf8')).hexdigest()

def get_storage_hash ( storage ) : if isinstance ( storage , LazyObject ) : if ( storage . _wrapped is None ) : storage . _setup ( ) storage = storage . _wrapped if ( not isinstance ( storage , six . string_types ) ) : storage_cls = storage . __class__ storage = ( '%s.%s' % ( storage_cls . __module__ , storage_cls . __name__ ) ) return hashlib . md5 ( storage . encode ( 'utf8' ) ) . hexdigest ( )
return a hex string hash for a storage object .