From b4e6ab220d1efe564d5bf99f54a0935113821c65 Mon Sep 17 00:00:00 2001 From: mozillazg Date: Fri, 8 Jan 2016 14:51:08 +0800 Subject: [PATCH] remove unused variable '_encoded' --- httpbin/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpbin/helpers.py b/httpbin/helpers.py index 404077c..f139a5c 100644 --- a/httpbin/helpers.py +++ b/httpbin/helpers.py @@ -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([