added fake 'charset_normalizer' for python 2 hosts

This commit is contained in:
Jakub Trllo 2022-06-08 17:10:55 +02:00
parent e2717ac963
commit 93caf11efd

View file

@ -0,0 +1,8 @@
"""Fake 'charset_normalizer' for Python 2 to raise ImportError.
Needed for 'requests' module which first checks for existence of
'charset_normalizer' (Python 3) but does not raise 'ImportError' but
'SyntaxError'.
"""
raise ImportError("charset_normalizer not available")