User:ZooBot/Capturebot/wikipedia.py.diff

From RationalWiki
Jump to: navigation, search
Index: wikipedia.py
===================================================================
--- wikipedia.py	(revision 10542)
+++ wikipedia.py	(working copy)
@@ -5739,7 +5739,7 @@
         retry_attempt = 0
         while True:
             try:
-                request = urllib2.Request(url, data, headers)
+                request = urllib2.Request(str(url), data, headers)
                 f = MyURLopener.open(request)
 
                 # read & info can raise socket.error