From 9a63e32f215f62ec7b48dd3d5429f194f03b2f54 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 20 Nov 2017 14:03:42 +0100 Subject: [PATCH] Add noqa to Python 2 compat variables of built-ins (see #1617) --- spacy/compat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/compat.py b/spacy/compat.py index 7cd06e545..e50036013 100644 --- a/spacy/compat.py +++ b/spacy/compat.py @@ -53,9 +53,9 @@ is_osx = sys.platform == 'darwin' if is_python2: import imp bytes_ = str - unicode_ = unicode - basestring_ = basestring - input_ = raw_input + unicode_ = unicode # noqa: F821 + basestring_ = basestring # noqa: F821 + input_ = raw_input # noqa: F821 json_dumps = lambda data: ujson.dumps(data, indent=2, escape_forward_slashes=False).decode('utf8') path2str = lambda path: str(path).decode('utf8')