From 33decd85b6a796290a0ccea55f25830bac891871 Mon Sep 17 00:00:00 2001 From: ines Date: Thu, 18 May 2017 14:12:31 +0200 Subject: [PATCH] Reorganise and explicitly state what's importable --- spacy/compat.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spacy/compat.py b/spacy/compat.py index 42c675b6e..35f6ecef3 100644 --- a/spacy/compat.py +++ b/spacy/compat.py @@ -16,6 +16,11 @@ try: except ImportError: import copyreg as copy_reg +pickle = pickle +copy_reg = copy_reg +CudaStream = CudaStream +cupy = cupy +fix_text = ftfy.fix_text is_python2 = six.PY2 is_python3 = six.PY3 @@ -23,8 +28,6 @@ is_windows = sys.platform.startswith('win') is_linux = sys.platform.startswith('linux') is_osx = sys.platform == 'darwin' -fix_text = ftfy.fix_text - if is_python2: bytes_ = str