Add noqa to Python 2 compat variables of built-ins (see #1617)

This commit is contained in:
ines 2017-11-20 14:03:42 +01:00
parent d70a64d78b
commit 9a63e32f21
1 changed files with 3 additions and 3 deletions

View File

@ -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')