def unmanaged_system_delete(request, object_id):
    #Dummy comment
    user_system = get_object_or_404(models.UnmanagedSystem, pk=object_id)
    if request.method == 'POST':
        try:
            acl = UnmanagedSystemACL(request)
            acl.check_delete()
            user_system_notes = user_system.notes
            user_system.delete()
            send_mail('System Deleted', (user_system, request.user.username, user_system_notes) % '%s Deleted by %s\nSystem Notes:\n%s', FROM_EMAIL_ADDRESS, UNAUTHORIZED_EMAIL_ADDRESS, fail_silently=False)
            return HttpResponseRedirect( reverse('user-system-list') )
        except PermissionDenied, e:
            send_mail('Unauthorized System Delete Attempt', 'Unauthorized Attempt to Delete %s by %s' % (user_system, request.user.username), FROM_EMAIL_ADDRESS, UNAUTHORIZED_EMAIL_ADDRESS, fail_silently=False)
            return render_to_response('user_systems/unauthorized_delete.html', {
                    'content': 'You do not have permission to delete this system',
                },
                RequestContext(request))
    else:
        return render_to_response('user_systems/unmanagedsystem_confirm_delete.html', {
                'owner': user_system,
            },
            RequestContext(request))
dataset/ETHPy150Open mozilla/inventory/user_systems/views.py/unmanaged_system_delete/swapped operands of `%`