mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 14:50:17 +00:00
Merge pull request #272 from mozillazg/remove-_encoded
remove unused variable '_encoded'
This commit is contained in:
+1
-1
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user