Commit 44207a34 by Tom Christie

pep8

parent 2026d5f1
""" """
The :mod:`compat` module provides support for backwards compatibility with older versions of django/python. The `compat` module provides support for backwards compatibility with older
versions of django/python, and compatbility wrappers around optional packages.
""" """
# flake8: noqa
import django import django
# cStringIO only if it's available, otherwise StringIO # cStringIO only if it's available, otherwise StringIO
......
...@@ -21,8 +21,8 @@ def is_form_media_type(media_type): ...@@ -21,8 +21,8 @@ def is_form_media_type(media_type):
Return True if the media type is a valid form media type. Return True if the media type is a valid form media type.
""" """
base_media_type, params = parse_header(media_type) base_media_type, params = parse_header(media_type)
return base_media_type == 'application/x-www-form-urlencoded' or \ return (base_media_type == 'application/x-www-form-urlencoded' or
base_media_type == 'multipart/form-data' base_media_type == 'multipart/form-data')
class Empty(object): class Empty(object):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment