|
@@ -44,8 +44,12 @@ import urllib3
|
|
|
import warnings
|
|
import warnings
|
|
|
from .exceptions import RequestsDependencyWarning
|
|
from .exceptions import RequestsDependencyWarning
|
|
|
|
|
|
|
|
|
|
+try:
|
|
|
|
|
+ from charset_normalizer import __version__ as charset_normalizer_version
|
|
|
|
|
+except ImportError:
|
|
|
|
|
+ charset_normalizer_version = None
|
|
|
|
|
+
|
|
|
# remove chardet dependancy
|
|
# remove chardet dependancy
|
|
|
-charset_normalizer_version = None
|
|
|
|
|
chardet_version = None
|
|
chardet_version = None
|
|
|
|
|
|
|
|
def check_compatibility(urllib3_version, chardet_version, charset_normalizer_version):
|
|
def check_compatibility(urllib3_version, chardet_version, charset_normalizer_version):
|