[1.7.x] Fixed flake8 warnings.

Backport of 6f59d29158 from master
This commit is contained in:
Tim Graham 2014-08-20 14:37:33 -04:00
parent 6981eced83
commit 2981485280
1 changed files with 4 additions and 4 deletions

View File

@ -47,10 +47,10 @@ class HandlerTests(TestCase):
""" """
environ = RequestFactory().get('/').environ environ = RequestFactory().get('/').environ
raw_query_strings = [ raw_query_strings = [
b'want=caf%C3%A9', # This is the proper way to encode 'café' b'want=caf%C3%A9', # This is the proper way to encode 'café'
b'want=caf\xc3\xa9', # UA forgot to quote bytes b'want=caf\xc3\xa9', # UA forgot to quote bytes
b'want=caf%E9', # UA quoted, but not in UTF-8 b'want=caf%E9', # UA quoted, but not in UTF-8
b'want=caf\xe9', # UA forgot to convert Latin-1 to UTF-8 and to quote (typical of MSIE) b'want=caf\xe9', # UA forgot to convert Latin-1 to UTF-8 and to quote (typical of MSIE)
] ]
got = [] got = []
for raw_query_string in raw_query_strings: for raw_query_string in raw_query_strings: