Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fw-interfaces.git;a=commitdiff;h=ed5cecec9bf34b0ff98414ee2fb91d3833adaf2d

commit ed5cecec9bf34b0ff98414ee2fb91d3833adaf2d
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sat Apr 10 17:15:20 2010 +0000

fw-interfaces.py
*fix read config

diff --git a/fw-interfaces.py b/fw-interfaces.py
index 7500db2..2ea6a00 100644
--- a/fw-interfaces.py
+++ b/fw-interfaces.py
@@ -75,11 +75,9 @@ def analyseLine(Line):

#now read config file
fs = open(ConfigFile, 'r')
-while 1:
-        txt = fs.readline().rstrip('\n\r')
-        if txt =='':
-            break
-        analyseLine(txt)
+fs = open(ConfigFile, 'r')
+for line in fs.readlines():
+        analyseLine(line.rstrip('\n\r'))
fs.close()

class MessageBox(gtk.Dialog):
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to