Use values() when the keys are not being used
authorRadu Voicilas <radu.voicilas@gmail.com>
Mon, 9 Sep 2013 12:21:36 +0000 (15:21 +0300)
committerRadu Voicilas <radu.voicilas@gmail.com>
Mon, 9 Sep 2013 12:21:36 +0000 (15:21 +0300)
requests/sessions.py

index b87bd86416c027762f614296b9ded9d56c668d4a..4cb5a3814d31be58433a03bde37c150d53d0e559 100644 (file)
@@ -500,7 +500,7 @@ class Session(SessionRedirectMixin):
 
     def close(self):
         """Closes all adapters and as such the session"""
-        for _, v in self.adapters.items():
+        for v in self.adapters.values():
             v.close()
 
     def mount(self, prefix, adapter):