Parametrized decorator wrapping the :func:`remove_hairs` function.

    Args:
        hairs (str, default HAIRS): List of characters which should be removed.
                                    See :attr:`HAIRS` for details.
322978
def remove_hairs_decorator(fn=None, hairs=HAIRS):
    
    def decorator_wrapper(fn):
        @wraps(fn)
        def decorator(*args, **kwargs):
            out = fn(*args, **kwargs)

            return remove_hairs(out, hairs)

        return decorator

    if fn:
        return decorator_wrapper(fn)

    return decorator_wrapper
1040709
def tag_remove(self, *tags):
        
        return View({**self.spec, 'tag': list(set(self.tags) - set(tags))})
1134223
def untracable(object):
    

    @functools.wraps(object)
    def untracable_wrapper(*args, **kwargs):
        """
        Marks decorated object as non tracable.

        :param \*args: Arguments.
        :type \*args: \*
        :param \*\*kwargs: Keywords arguments.
        :type \*\*kwargs: \*\*
        :return: Object.
        :rtype: object
        """

        return object(*args, **kwargs)

    set_untracable(untracable_wrapper)

    return untracable_wrapper
150895
def hide(*keys):
    
    def decorator(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            g.hide_request_fields = keys
            g.hide_response_fields = keys
            return func(*args, **kwargs)
        return wrapper
    return decorator
900765
def remove(self, name):
        
        attrs = [attr for attr in self.attributes if attr.name == name.strip()]
        if not attrs:
            raise ValueError(name)
        for attr in attrs:
            self.attributes.remove(attr)
237630
def process_kwargs(self, kwargs, prefix='default_', delete=True):
        
        processed = []
        for k in kwargs:
            if hasattr(self, prefix + k):
                processed += [k]
                setattr(self, prefix + k, kwargs[k])
        for k in processed:
            del(kwargs[k])
        return kwargs
969373
def deleteRole(self, *args, **kwargs):
        

        return self._makeApiCall(self.funcinfo["deleteRole"], *args, **kwargs)
632300
def remove_excluded(self):
        
        # import yaml
        # print yaml.dump({k:v.__json__() for k,v in self.sources.items()}, default_flow_style=False)
        sources = list(self.sources.values())
        for src in sources:
            if src.excluded:
                del self.sources[src.name]
            src.imports = [m for m in src.imports if not self._exclude(m)]
            src.imported_by = [m for m in src.imported_by if not self._exclude(m)]
634000
def create_list_str(help_string=NO_HELP, default=NO_DEFAULT):
        # type: (str, Union[List[str], NO_DEFAULT_TYPE]) -> List[str]
        
        # noinspection PyTypeChecker
        return ParamFunctions(
            help_string=help_string,
            default=default,
            type_name="List[str]",
            function_s2t=convert_string_to_list_str,
            function_t2s=convert_list_str_to_string,
        )
125133
def validate(**kwargs):
    
    def decorator(func):
        _VALIDATORS[kwargs.pop('name', func.__name__)] = func
        return func

    return decorator
937592
def removedirs_p(self):
        
        try:
            self.removedirs()
        except OSError:
            _, e, _ = sys.exc_info()
            if e.errno != errno.ENOTEMPTY and e.errno != errno.EEXIST:
                raise
        return self
75709
def argument(*args, **kwargs):
    
    def decorator(f):
        if not hasattr(f, '_arguments'):
            f._arguments = []
        if not hasattr(f, '_argnames'):
            f._argnames = []
        f._arguments.append((args, kwargs))
        f._argnames.append(_get_dest(*args, **kwargs))
        return f
    return decorator
650248
def _unset_default_params(glyphs):
    
    for glyphs_name, _, default_value in DEFAULT_PARAMETERS:
        if (
            glyphs_name in glyphs.customParameters
            and glyphs.customParameters[glyphs_name] == default_value
        ):
            del (glyphs.customParameters[glyphs_name])
        # These parameters can be referred to with the two names in Glyphs
        if (
            glyphs_name in glyphs.customParameters
            and glyphs.customParameters[glyphs_name] == default_value
        ):
            del (glyphs.customParameters[glyphs_name])
258938
def remove(text, what, count=None, strip=False):
    '''
    
    '''
    return replace(text, what, '', count=count, strip=strip)
94023
def verbose_option(default=False):
    

    def decorator(method):
        @wraps(method)
        def wrapper(*args, **kwargs):
            option = Option.verbose.value
            kwargs[option] = kwargs.get(option, bool(default))
            return method(*args, **kwargs)

        return wrapper

    return decorator
51461
def strip_unknown_features(self):
        
        if not self.db:
            return self
        ind = []
        for i, gene_id in enumerate(self.data.index):
            try:
                self.db[gene_id]
                ind.append(i)
            except gffutils.FeatureNotFoundError:
                pass
        ind = np.array(ind)
        return self.__class__(self.data.ix[ind], **self._kwargs)
1122518
def RemoveMethod(self, function):
        
        self.added_methods = [dm for dm in self.added_methods if not dm.method is function]