aboutsummaryrefslogtreecommitdiff
path: root/urllib3/filepost.py
diff options
context:
space:
mode:
Diffstat (limited to 'urllib3/filepost.py')
-rw-r--r--urllib3/filepost.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/urllib3/filepost.py b/urllib3/filepost.py
index e8b30bd..c3db30c 100644
--- a/urllib3/filepost.py
+++ b/urllib3/filepost.py
@@ -5,7 +5,6 @@
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import codecs
-import mimetypes
from uuid import uuid4
from io import BytesIO
@@ -38,10 +37,10 @@ def iter_field_objects(fields):
i = iter(fields)
for field in i:
- if isinstance(field, RequestField):
- yield field
- else:
- yield RequestField.from_tuples(*field)
+ if isinstance(field, RequestField):
+ yield field
+ else:
+ yield RequestField.from_tuples(*field)
def iter_fields(fields):