Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

                @wraps(func)
        def patched(*args, **kwargs):
            return cls(func(*args, **kwargs))
        


src/l/a/lacore-0.1.3/lacore/adf/elements.py   lacore(Download)
from lacore.cipher import cipher_modes, new_key
from lacore.date import today, later
from .serialize import BaseYAMLObject, add_path_resolver
 
 
    def __init__(self, mode, key=1, input=None):
        if mode not in cipher_modes():
            raise ValueError("{} not recognized".format(mode))
        if not isinstance(key, int):
            raise ValueError("key must be integer")
    def __setstate__(self, d):
        assert d['mode'] in cipher_modes()
        self.__dict__.update(d)