diff --git a/mwclient/http.py b/mwclient/http.py
index 0a927a49fffb11518be7cff1f14200d83f02e40e..e33b4c882673f89099f41b89be625c29eeb4af76 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)