diff --git a/django/middleware/csrf.py b/django/middleware/csrf.py index a16a17427b..2f36f18e6c 100644 --- a/django/middleware/csrf.py +++ b/django/middleware/csrf.py @@ -6,7 +6,6 @@ against request forgeries from other sites. """ import hashlib -import itertools import re import random @@ -15,14 +14,8 @@ from django.core.urlresolvers import get_callable from django.utils.cache import patch_vary_headers from django.utils.http import same_origin from django.utils.log import getLogger -from django.utils.safestring import mark_safe from django.utils.crypto import constant_time_compare -_POST_FORM_RE = \ - re.compile(r'(