From 2ca1fbdd2e6fd943c6f3e12f8de5dfcff626e081 Mon Sep 17 00:00:00 2001
From: Bryan Tong Minh <bryan.tongminh@gmail.com>
Date: Fri, 6 May 2011 13:33:34 +0000
Subject: [PATCH] Sigh, more fixes for Content-Length

---
 mwclient/http.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mwclient/http.py b/mwclient/http.py
index 0a927a4..e33b4c8 100644
--- a/mwclient/http.py
+++ b/mwclient/http.py
@@ -93,8 +93,8 @@ class HTTPPersistentConnection(object):
 		try:
 			self._conn.request(method, path, headers = headers)
 			if issubclass(data.__class__, upload.Upload):
-				for str in data:
-					self._conn.send(str)
+				for s in data:
+					self._conn.send(s)
 			elif data:
 				self._conn.send(data)
 			
-- 
GitLab