From 251d08bc4ae647b83436da23ce1f34c6e6089904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Alves?= Date: Fri, 7 Aug 2020 17:35:09 -0300 Subject: [PATCH] Delete json_conv.py --- Python Core/json_conv.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 Python Core/json_conv.py diff --git a/Python Core/json_conv.py b/Python Core/json_conv.py deleted file mode 100644 index 64ef427..0000000 --- a/Python Core/json_conv.py +++ /dev/null @@ -1,25 +0,0 @@ -import json -import audio - -def converte_json(dicio): - try: - with open('package.json', 'w') as jf: - json.dump(dicio, jf, indent=4) - if dicio['str'] != "Que função você gostaria de usar?": audio.cria_audio(dicio['str']) - except OSError: - print("erro no carregamento") - -def carrega_json(position): - try: - with open('input.json', 'r') as jf: - oarq = json.load(jf) - return oarq[position] - except json.decoder.JSONDecodeError: - print("erro no carregamento") - -def inicializa(): - try: - with open('input.json', 'w') as inj: - json.dump({"input" : ""}, inj, indent=4) - except OSError: - print("erro no carregamento")