mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Update json.py
Hi, i'm reading the salt code,and i find a little bug here,is it?
This commit is contained in:
parent
c54a07d3e5
commit
1ba46ce456
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user