From 403711ed13d2c8bff8dbf8c1fe64ac437fd39254 Mon Sep 17 00:00:00 2001 From: Cathal Garvey Date: Sat, 30 May 2015 19:33:35 +0100 Subject: [PATCH] Whoops, forgot to version-gate chardet in the actual code. Thanks Travis! --- pdfminer/utils.py | 2 +- tests/test_tools_dumppdf.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pdfminer/utils.py b/pdfminer/utils.py index 696dd1d..e5bd6bf 100644 --- a/pdfminer/utils.py +++ b/pdfminer/utils.py @@ -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): diff --git a/tests/test_tools_dumppdf.py b/tests/test_tools_dumppdf.py index ef93848..7b962f7 100644 --- a/tests/test_tools_dumppdf.py +++ b/tests/test_tools_dumppdf.py @@ -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