Custom keycodes in JSON (#19925)
This commit is contained in:
parent
e35bb8ebfa
commit
79b0f9168e
9 changed files with 129 additions and 13 deletions
|
@ -67,6 +67,12 @@ def _filtered_copy(src, dst):
|
|||
dst.write_text(json.dumps(data), encoding='utf-8')
|
||||
return dst
|
||||
|
||||
if dst.suffix == '.jsonschema':
|
||||
data = json_load(src)
|
||||
|
||||
dst.write_text(json.dumps(data), encoding='utf-8')
|
||||
return dst
|
||||
|
||||
return shutil.copy2(src, dst)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue