diff --git a/SPARQLWrapper/Wrapper.py b/SPARQLWrapper/Wrapper.py index 82f71d3..fde2fa5 100644 --- a/SPARQLWrapper/Wrapper.py +++ b/SPARQLWrapper/Wrapper.py @@ -400,7 +400,7 @@ def setUseKeepAlive(self): @raise ImportError: when could not be imported urlgrabber.keepalive.HTTPHandler """ try: - from urlgrabber.keepalive import HTTPHandler + from keepalive import HTTPHandler keepalive_handler = HTTPHandler() opener = urllib2.build_opener(keepalive_handler) urllib2.install_opener(opener) diff --git a/requirements.txt b/requirements.txt index 192f6f3..582ed44 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ rdflib >= 4.0 rdflib_jsonld -pycurl >= 7.19.5.1 +keepalive >= 0.1 diff --git a/setup.py b/setup.py index 17f50df..c10b26e 100755 --- a/setup.py +++ b/setup.py @@ -24,9 +24,9 @@ _requires.append('rdflib') _install_requires.append('rdflib >= 4.0') -# 7.19.5.1 -_requires.append('pycurl') -_install_requires.append('pycurl >= 7.19.5.1') +# keepalive +_requires.append('keepalive') +_install_requires.append('keepalive >= 0.1') # simplejson if sys.version_info[0:2] < (2, 6):