mirror of https://github.com/explosion/spaCy.git
Add noqa to Python 2 compat variables of built-ins (see #1617)
This commit is contained in:
parent
d70a64d78b
commit
9a63e32f21
|
@ -53,9 +53,9 @@ is_osx = sys.platform == 'darwin'
|
||||||
if is_python2:
|
if is_python2:
|
||||||
import imp
|
import imp
|
||||||
bytes_ = str
|
bytes_ = str
|
||||||
unicode_ = unicode
|
unicode_ = unicode # noqa: F821
|
||||||
basestring_ = basestring
|
basestring_ = basestring # noqa: F821
|
||||||
input_ = raw_input
|
input_ = raw_input # noqa: F821
|
||||||
json_dumps = lambda data: ujson.dumps(data, indent=2, escape_forward_slashes=False).decode('utf8')
|
json_dumps = lambda data: ujson.dumps(data, indent=2, escape_forward_slashes=False).decode('utf8')
|
||||||
path2str = lambda path: str(path).decode('utf8')
|
path2str = lambda path: str(path).decode('utf8')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue