Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class PublicRing(object):
def __init__(self, rope):
self._rope = rope
def key(self, func):
self._rope.compose_key = func
def encode(self, func):
self._rope._encode = func
def decode(self, func):
self._rope._decode = func
class RingRope(RopeCore):
def __init__(self, *args, **kwargs):
super(RingRope, self).__init__(*args, **kwargs)
self._encode = None
self._decode = None
self.ring = PublicRing(self)
def compose_key(self, *bound_args, **kwargs):
config = self.config
_ignorable_keys = suggest_ignorable_keys(
self.callable, self.config.ignorable_keys)
_key_prefix = suggest_key_prefix(self.callable, config.key_prefix)
c = self.callable