From ae5b4d0e84b80494538d0577bfec91f9ffedb993 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 20 Mar 2019 09:55:45 +0100 Subject: [PATCH] Fix formatting (hopefully also restarts build properly) --- spacy/__init__.py | 1 + spacy/errors.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/spacy/__init__.py b/spacy/__init__.py index 81604c4c2..9edbab198 100644 --- a/spacy/__init__.py +++ b/spacy/__init__.py @@ -15,6 +15,7 @@ from .about import __version__ from .errors import Errors, Warnings, deprecation_warning from . import util + if sys.maxunicode == 65535: raise SystemError(Errors.E130) diff --git a/spacy/errors.py b/spacy/errors.py index 82f17fea8..b63c46919 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -367,10 +367,10 @@ class Errors(object): "Instead, create a new Span object and specify the `label` keyword argument, " "for example:\nfrom spacy.tokens import Span\n" "span = Span(doc, start={start}, end={end}, label='{label}')") - E130 = ("You are running a narrow unicode build, " - "which is incompatible with spacy >= 2.1.0, reinstall Python and " - "use a wide unicode build instead. You can also rebuild Python " - "and set the --enable-unicode=ucs4 flag.") + E130 = ("You are running a narrow unicode build, which is incompatible " + "with spacy >= 2.1.0. To fix this, reinstall Python and use a wide " + "unicode build instead. You can also rebuild Python and set the " + "--enable-unicode=ucs4 flag.") @add_codes