Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
Class decorator for creating a class with a metaclass.

        def add_metaclass(metaclass):
    """Class decorator for creating a class with a metaclass."""
    def wrapper(cls):
        orig_vars = cls.__dict__.copy()
        orig_vars.pop('__dict__', None)
        orig_vars.pop('__weakref__', None)
        for slots_var in orig_vars.get('__slots__', ()):
            orig_vars.pop(slots_var)
        return metaclass(cls.__name__, cls.__bases__, orig_vars)
    return wrapper
        


src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/backend.py   Nagstamon(Download)
from . import backends
from .util import properties
from .py27compat import add_metaclass, filter
 
class KeyringBackendMeta(abc.ABCMeta):

src/k/e/keyring-3.7/keyring/backend.py   keyring(Download)
from . import backends
from .util import properties
from .py27compat import add_metaclass, filter
 
class KeyringBackendMeta(abc.ABCMeta):

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/credentials.py   Nagstamon(Download)
import os
import abc
 
from .py27compat import add_metaclass
 

src/k/e/keyring-3.7/keyring/credentials.py   keyring(Download)
import os
import abc
 
from .py27compat import add_metaclass