From 1efd06a87da37c074f7590ff5968090d849cea3f Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Wed, 1 Aug 2012 09:03:57 -0400 Subject: [PATCH] This simplification should work. Probably should write a test case where it should fail though. --- requests/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/models.py b/requests/models.py index 8e2e335..379c26d 100644 --- a/requests/models.py +++ b/requests/models.py @@ -342,7 +342,7 @@ class Request(object): try: fields = list(self.data.items()) except AttributeError: - fields = list(dict(self.data).items()) + fields = list(self.data) if isinstance(files, dict): files = files.items() -- 2.7.4