@permission_required("core.manage_shop")
def add_delivery_time(request, template_name="manage/delivery_times/add.html"):
    if request.method == "POST":
        form = DeliveryTimeAddForm(data=request.POST)
        if form.is_valid():
            delivery_time = form.save()

            return lfs.core.utils.set_message_cookie(
                url=reverse("lfs_manage_delivery_time", kwargs={"id": delivery_time.id}),
                msg=_(u"Delivery time has been added."),
            )

    else:
        form = DeliveryTimeAddForm()

    return render_to_response(template_name, RequestContext(request, {
        "form": form,
        "delivery_times": DeliveryTime.objects.all(),
        "next": (request.POST if request.method == 'POST' else request.GET).get("next", request.META.get("HTTP_REFERER")),
    }))
No warnings are emitted for using a name defined by a C{with} statement
dataset/ETHPy150Open diefenbach/django-lfs/lfs/manage/views/delivery_times.py/add_delivery_time--crossover with--dataset/ETHPy150Open kevinw/pyflakes/pyflakes/test/test_other.py/Python25Test.test_withStatementSingleName