modifié: m/loadConf.py

This commit is contained in:
sidya82 2014-03-03 00:57:20 +01:00
parent 1059204e16
commit 3c87c399a7
1 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@ class LoadConf(object):
with open("m/fichier/conf", "r") as source :
for ligne in source:
data = ligne.rstrip('\n\r').split('=')
if data[0] == key :
source.close()
return data[1]
if data[0] == key :
source.close()
return data[1]
source.close()
return "error"