From 6a5287f0dcd6b80e8884cb5a5e77248cdb96aab5 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 29 Nov 2017 16:43:18 +0100 Subject: [PATCH] xls_parser: make code for xlsb compatible with python3 --- oletools/xls_parser.py | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/oletools/xls_parser.py b/oletools/xls_parser.py index 5532ebd..f008281 100644 --- a/oletools/xls_parser.py +++ b/oletools/xls_parser.py @@ -65,6 +65,11 @@ if _parent_dir not in sys.path: from oletools.thirdparty import olefile +# === PYTHON 2+3 SUPPORT ====================================================== + +if sys.version_info[0] >= 3: + unichr = chr + ############################################################################### # Helpers ############################################################################### -- libgit2 0.21.4