python-duckduckgo
python-duckduckgo copied to clipboard
py2.7/3 compliant
Makes duckduckgo.py python3 (and 2.7) compliant.
(+ remove some useless whitespaces because of my editor conf :))
This is on version from pip repo?
@psychomantys this repo is this one
But looks like to be dead :(
This other repo looks like to be py3 if needed.
```ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-045zxlfv/duckduckgo2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-045zxlfv/duckduckgo2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-045zxlfv/duckduckgo2/pip-egg-info
cwd: /tmp/pip-install-045zxlfv/duckduckgo2/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-045zxlfv/duckduckgo2/setup.py", line 2, in <module>
from duckduckgo import __version__
File "/tmp/pip-install-045zxlfv/duckduckgo2/duckduckgo.py", line 2, in <module>
import urllib2
ModuleNotFoundError: No module named 'urllib2'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.