From cb57f73650fe20855582f47b7ec69136e7d3e6c1 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Fri, 15 Mar 2013 21:27:58 -0400 Subject: Python 3 compatibility: apply no longer exists --- python/curl/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/curl/__init__.py b/python/curl/__init__.py index b002618..5b6b549 100644 --- a/python/curl/__init__.py +++ b/python/curl/__init__.py @@ -63,7 +63,7 @@ class Curl: def set_option(self, *args): "Set an option on the retrieval." - apply(self.handle.setopt, args) + self.handle.setopt(*args) def set_verbosity(self, level): "Set verbosity to 1 to see transactions." @@ -103,7 +103,7 @@ class Curl: def get_info(self, *args): "Get information about retrieval." - return apply(self.handle.getinfo, args) + return self.handle.getinfo(*args) def info(self): "Return a dictionary with all info on the last response." -- cgit v1.2.1