Commit d2ba0396 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧

Remove Mechanize dependency and related workarounds

parent 0200c006
......@@ -142,9 +142,6 @@ echo.
echo -- html2text
%PythonPath%Scripts\easy_install.exe html2text || goto :InstallFailed
echo.
echo -- mechanize
%PythonPath%Scripts\easy_install.exe mechanize || goto :InstallFailed
echo.
echo -- google-api-python-client
%PythonPath%Scripts\easy_install.exe google-api-python-client || goto :InstallFailed
echo.
......
......@@ -149,7 +149,6 @@ def install_weboob(qt, xdg):
'six',
'unidecode',
'Pillow',
'mechanize; python_version < "3.0"',
'futures; python_version < "3.2"',
]
......
......@@ -24,12 +24,6 @@ try:
except ImportError:
raise ImportError('Please install python-feedparser')
if '5.1' > feedparser.__version__ >= '5.0':
# feedparser 5.0.x replaces this regexp on sgmllib
# and mechanize < 0.2 fails with malformed pages.
import sgmllib
import re
sgmllib.endbracket = re.compile('[<>]')
__all__ = ['Entry', 'Newsfeed']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment