wireless-net/trunk/sysconfig/interfaces: down.d/ppp/wlan-down.py up.d/ppp/wlan-up.py

arekm cvs at pld-linux.org
Thu Jun 30 21:30:25 CEST 2005


Author: arekm
Date: Thu Jun 30 21:30:21 2005
New Revision: 6198

Modified:
   wireless-net/trunk/sysconfig/interfaces/down.d/ppp/wlan-down.py
   wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py
Log:
Drop xreadlines usage.

Modified: wireless-net/trunk/sysconfig/interfaces/down.d/ppp/wlan-down.py
==============================================================================
--- wireless-net/trunk/sysconfig/interfaces/down.d/ppp/wlan-down.py	(original)
+++ wireless-net/trunk/sysconfig/interfaces/down.d/ppp/wlan-down.py	Thu Jun 30 21:30:21 2005
@@ -2,7 +2,7 @@
 # Arkadiusz Miskiewicz <arekm at pld-linux.org>
 # License GPL v2.
 
-import os, xreadlines, re, time, ConfigParser;
+import os, re, time, ConfigParser;
 
 config = ConfigParser.ConfigParser()
 config.read('/etc/wireless-net/wlan.conf')
@@ -19,7 +19,7 @@
 fp = open(r_cfg, "r")
 fl = open(p_log, "a")
 
-for line in xreadlines.xreadlines(fp):
+for line in fp:
     c = re.compile("^\d+\s+\w+\s+\w+\s+\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s+\d{1,6}\s+\d{1,6}\s+[\w-]+\s+[\w:]+")
     ret = c.match(line)
     if ret == None:

Modified: wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py
==============================================================================
--- wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py	(original)
+++ wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py	Thu Jun 30 21:30:21 2005
@@ -2,7 +2,7 @@
 # Arkadiusz Miskiewicz <arekm at pld-linux.org>
 # License: GPL
 
-import os, string, xreadlines, re, time, ConfigParser;
+import os, string, re, time, ConfigParser;
 
 config = ConfigParser.ConfigParser()
 config.read('/etc/wireless-net/wlan.conf')
@@ -18,7 +18,7 @@
 fp = open(r_cfg, "r")
 fl = open(p_log, "a")
 
-for line in xreadlines.xreadlines(fp):
+for line in fp:
     c = re.compile("^\d+\s+\w+\s+\w+\s+\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s+\d{1,6}\s+\d{1,6}\s+[\w-]+\s+[\w:]+")
     ret = c.match(line)
     if ret == None:



More information about the pld-cvs-commit mailing list