summaryrefslogtreecommitdiff
path: root/django/http/multipartparser.py
diff options
context:
space:
mode:
authorSimon Charette <charettes@users.noreply.github.com>2017-01-19 02:39:46 -0500
committerClaude Paroz <claude@2xlibre.net>2017-01-19 08:39:46 +0100
commitcecc079168e8669138728d31611ff3a1e7eb3a9f (patch)
tree2415083d44f84c6f206930fc689a8c0e50a98caa /django/http/multipartparser.py
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'django/http/multipartparser.py')
-rw-r--r--django/http/multipartparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py
index 4cbb98afdd..ff7e36e321 100644
--- a/django/http/multipartparser.py
+++ b/django/http/multipartparser.py
@@ -41,7 +41,7 @@ FILE = "file"
FIELD = "field"
-class MultiPartParser(object):
+class MultiPartParser:
"""
A rfc2388 multipart/form-data parser.
@@ -646,7 +646,7 @@ def parse_boundary_stream(stream, max_header_size):
return (TYPE, outdict, stream)
-class Parser(object):
+class Parser:
def __init__(self, stream, boundary):
self._stream = stream
self._separator = b'--' + boundary