Welcome, guest | Sign In | My Account | Store | Cart

Patches needed to install pycurl into python3

Python, 17 lines
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
--- pycurl-7.19.0/python/curl/__init__.py.orig  2010-04-21 11:43:47.000000000 +0300
+++ pycurl-7.19.0/python/curl/__init__.py       2010-04-21 11:44:24.000000000 +0300
@@ -164,10 +164,10 @@
         url = sys.argv[1]
     c = Curl()
     c.get(url)
-    print c.body()
-    print '='*74 + '\n'
+    print(c.body())
+    print('='*74 + '\n')
     import pprint
     pprint.pprint(c.info())
-    print c.get_info(pycurl.OS_ERRNO)
-    print c.info()['os-errno']
+    print(c.get_info(pycurl.OS_ERRNO))
+    print(c.info()['os-errno'])
     c.close()

1 comment

Dima Tisnek (author) 11 years, 7 months ago  # | flag

this is an extra to pycurl_python3.diff from sourceforge:

http://sourceforge.net/tracker/?func=detail&aid=2917775&group_id=28236&atid=392779

Created by Dima Tisnek on Tue, 27 Apr 2010 (MIT)
Python recipes (4591)
Dima Tisnek's recipes (11)

Required Modules

  • (none specified)

Other Information and Tasks