Run Black+Flake8 on project
This commit is contained in:
committed by
Seth Michael Larson
parent
3a89b7bd01
commit
210fae23d0
@@ -33,7 +33,7 @@ def _escape(value):
|
||||
|
||||
# encode strings to utf-8
|
||||
if isinstance(value, string_types):
|
||||
if PY2 and isinstance(value, unicode):
|
||||
if PY2 and isinstance(value, unicode): # noqa: F821
|
||||
return value.encode("utf-8")
|
||||
if not PY2 and isinstance(value, str):
|
||||
return value.encode("utf-8")
|
||||
|
||||
Reference in New Issue
Block a user