Commit 6a5287f0dcd6b80e8884cb5a5e77248cdb96aab5

Authored by Christian Herdtweck
Committed by Philippe Lagadec
1 parent a0217850

xls_parser: make code for xlsb compatible with python3

Showing 1 changed file with 5 additions and 0 deletions
oletools/xls_parser.py
@@ -65,6 +65,11 @@ if _parent_dir not in sys.path: @@ -65,6 +65,11 @@ if _parent_dir not in sys.path:
65 from oletools.thirdparty import olefile 65 from oletools.thirdparty import olefile
66 66
67 67
  68 +# === PYTHON 2+3 SUPPORT ======================================================
  69 +
  70 +if sys.version_info[0] >= 3:
  71 + unichr = chr
  72 +
68 ############################################################################### 73 ###############################################################################
69 # Helpers 74 # Helpers
70 ############################################################################### 75 ###############################################################################