Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

            @wraps(func)
    def wrapper(*args, **kwargs):
        for arg in list(args) + list(six.itervalues(kwargs)):
            if isinstance(arg, Promise):
                break
        else:
            return func(*args, **kwargs)
        return lazy(func, *resultclasses)(*args, **kwargs)
        


src/i/m/imtx-HEAD/imtx/apps/blog/models.py   imtx(Download)
from django.db.models.fields.files import ImageFieldFile
from django.core.mail import EmailMultiAlternatives
from django.utils.html import strip_tags, clean_html
 
from tagging.models import Tag
    def save(self, *args, **kwargs):
        self.content = clean_html(self.content)
 
        super(Post, self).save(*args, **kwargs)
 

src/d/j/django-limbo-0.7.7/limbo/apps/changelog/views.py   django-limbo(Download)
from django.core.paginator import Paginator
from limbo.apps.changelog import models, forms
from django.views.generic.simple import direct_to_template
from django.utils.html import clean_html
from django.shortcuts import get_object_or_404
def changelog_entry(request, slug):
    slug = clean_html(slug)
    change = get_object_or_404(models.Change, slug = slug)
    context = PageContext(request, "Change:%s" %change.title, d = locals())
    return direct_to_template(request, template = 'changelog/change.html', extra_context = context)