mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-11 17:56:30 +03:00
Add try/except around bz2 import
This commit is contained in:
parent
783c0c8795
commit
b9616419e1
|
@ -1,8 +1,11 @@
|
||||||
# coding: utf8
|
# coding: utf8
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
try:
|
||||||
import bz2
|
import bz2
|
||||||
import gzip
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user