Whoops, forgot to version-gate chardet in the actual code. Thanks Travis!
parent
a2ad7a6d03
commit
403711ed13
|
@ -8,9 +8,9 @@ import struct
|
||||||
INF = (1<<31) - 1
|
INF = (1<<31) - 1
|
||||||
|
|
||||||
import six #Python 2+3 compatibility
|
import six #Python 2+3 compatibility
|
||||||
import chardet # For str encoding detection in Py3
|
|
||||||
|
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
|
import chardet # For str encoding detection in Py3
|
||||||
unicode = str
|
unicode = str
|
||||||
|
|
||||||
def make_compat_bytes(in_str):
|
def make_compat_bytes(in_str):
|
||||||
|
|
|
@ -8,7 +8,6 @@ if six.PY3:
|
||||||
from tools import dumppdf
|
from tools import dumppdf
|
||||||
elif six.PY2:
|
elif six.PY2:
|
||||||
import os, sys
|
import os, sys
|
||||||
# raise Exception("{}\n{}".format(sys.path, os.path.abspath(os.path.curdir)))
|
|
||||||
sys.path.append(os.path.abspath(os.path.curdir))
|
sys.path.append(os.path.abspath(os.path.curdir))
|
||||||
import tools.dumppdf as dumppdf
|
import tools.dumppdf as dumppdf
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue