diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2013-02-27 20:23:28 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2013-03-15 21:31:07 -0400 |
commit | 33f357e2753fe5cbf448d818aeae51b42fb1e71c (patch) | |
tree | 82229306796266c9f8f6b2b9cedcb34c6ab73e06 /python/curl | |
parent | 0f6e80d6ae809f6fb4fc14a68f18518c78bf9249 (diff) | |
download | pycurl-33f357e2753fe5cbf448d818aeae51b42fb1e71c.tar.gz |
Python 3 compatibility: print syntax (src)
Diffstat (limited to 'python/curl')
-rw-r--r-- | python/curl/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/curl/__init__.py b/python/curl/__init__.py index 5b6b549..5617262 100644 --- a/python/curl/__init__.py +++ b/python/curl/__init__.py @@ -164,10 +164,10 @@ if __name__ == "__main__": 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() |