[1.7.x] Fixed flake8 warnings.

Backport of 35f46ec7a9 from master
This commit is contained in:
Tim Graham 2014-03-21 06:24:45 -04:00
parent b74ec85c1d
commit caa753ffd6
2 changed files with 5 additions and 5 deletions

View File

@ -29,10 +29,10 @@ class UserForm(forms.Form):
max_length=50, max_length=50,
validators=[ validators=[
validators.RegexValidator( validators.RegexValidator(
regex='^[a-z]*$', regex='^[a-z]*$',
message="Letters only.", message="Letters only.",
flags=re.IGNORECASE, flags=re.IGNORECASE,
) )
] ]
) )

View File

@ -642,7 +642,7 @@ class TemplateTests(TestCase):
# SYNTAX -- # SYNTAX --
# 'template_name': ('template contents', 'context dict', 'expected string output' or Exception class) # 'template_name': ('template contents', 'context dict', 'expected string output' or Exception class)
# This import is necessary when tests are run isolated: # This import is necessary when tests are run isolated:
from .templatetags import custom from .templatetags import custom # noqa
basedir = os.path.dirname(os.path.abspath(upath(__file__))) basedir = os.path.dirname(os.path.abspath(upath(__file__)))
tests = { tests = {
### BASIC SYNTAX ################################################ ### BASIC SYNTAX ################################################