Add try/except around bz2 import

This commit is contained in:
Matthew Honnibal 2017-10-27 01:18:05 +00:00
parent 783c0c8795
commit b9616419e1

View File

@ -1,8 +1,11 @@
# coding: utf8 # coding: utf8
from __future__ import unicode_literals from __future__ import unicode_literals
import bz2 try:
import gzip import bz2
import gzip
except ImportError:
pass
import math import math
from ast import literal_eval from ast import literal_eval
from pathlib import Path from pathlib import Path