Merge pull request #272 from mozillazg/remove-_encoded

remove unused variable '_encoded'
This commit is contained in:
Ian Cordasco
2016-02-10 20:31:25 -06:00
+1 -1
View File
@@ -89,7 +89,7 @@ def json_safe(string, content_type='application/octet-stream'):
"""
try:
string = string.decode('utf-8')
_encoded = json.dumps(string)
json.dumps(string)
return string
except (ValueError, TypeError):
return b''.join([