From f1dbacc033799339a7878d7e430d48d940b1325c Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 26 Aug 2018 19:16:27 +0200 Subject: [PATCH] modif import in json class --- chaineTV.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chaineTV.py b/chaineTV.py index 8042ed2..db1b2f0 100644 --- a/chaineTV.py +++ b/chaineTV.py @@ -170,7 +170,6 @@ class Interface: class JSONfile: def __init__(self,filename): - import os,json self.datafilepath=os.path.dirname(os.path.realpath(__file__))+"/"+filename try: with open(self.datafilepath, 'r', encoding='utf-8') as f: @@ -208,7 +207,7 @@ class JSONfile: json.dump(liste_chaine, f, indent=4) def __repr__(self): return str(self.data) - + def RepresentsInt(s): try: int(s)