Whoops, forgot to version-gate chardet in the actual code. Thanks Travis!

pull/5/head
Cathal Garvey 2015-05-30 19:33:35 +01:00
parent a2ad7a6d03
commit 403711ed13
2 changed files with 1 additions and 2 deletions

View File

@ -8,9 +8,9 @@ import struct
INF = (1<<31) - 1
import six #Python 2+3 compatibility
import chardet # For str encoding detection in Py3
if six.PY3:
import chardet # For str encoding detection in Py3
unicode = str
def make_compat_bytes(in_str):

View File

@ -8,7 +8,6 @@ if six.PY3:
from tools import dumppdf
elif six.PY2:
import os, sys
# raise Exception("{}\n{}".format(sys.path, os.path.abspath(os.path.curdir)))
sys.path.append(os.path.abspath(os.path.curdir))
import tools.dumppdf as dumppdf