fix compat.py

This commit is contained in:
2017-05-26 22:51:40 -04:00
parent 1d31b36148
commit 8a2014e265
+3 -2
View File
@@ -8,7 +8,7 @@ This module handles import compatibility issues between Python 2 and
Python 3.
"""
from .packages import chardet
import chardet
import sys
@@ -45,7 +45,8 @@ if is_py2:
import cookielib
from Cookie import Morsel
from StringIO import StringIO
from .packages.urllib3.packages.ordered_dict import OrderedDict
from urllib3.packages.ordered_dict import OrderedDict
builtin_str = str
bytes = str