Update json.py

Hi, i'm reading the salt code,and i find a little bug here,is it?
This commit is contained in:
Solaris 2018-01-29 17:16:10 +08:00 committed by rallytime
parent c54a07d3e5
commit 1ba46ce456
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -104,7 +104,7 @@ def dump(obj, fp, **kwargs):
kwargs['ensure_ascii'] = False
if six.PY2:
obj = salt.utils.data.encode(obj)
return json.dump(obj, fp, **kwargs) # future lint: blacklisted-function
return json_module.dump(obj, fp, **kwargs) # future lint: blacklisted-function
def dumps(obj, **kwargs):