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)