summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/30-07-2011/DeviceAddress.py
diff options
context:
space:
mode:
Diffstat (limited to 'For Weekly Test/30-07-2011/DeviceAddress.py')
-rw-r--r--For Weekly Test/30-07-2011/DeviceAddress.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/For Weekly Test/30-07-2011/DeviceAddress.py b/For Weekly Test/30-07-2011/DeviceAddress.py
deleted file mode 100644
index 6f0039d..0000000
--- a/For Weekly Test/30-07-2011/DeviceAddress.py
+++ /dev/null
@@ -1,27 +0,0 @@
-class DeviceAddress:
-
- def __init__(self):
- self.add = None
- self.num = None
-
- def findDevice(self, device):
- file = open('DeviceAddress.txt', 'r')
-
- for line in file:
-
- first = line.find('[')
- second= line.find(']') # search for position
- find = line[first+1:second]
-
- stop = line.find(':')
- newLine =line[stop+1:]
- stop2 = newLine.find(':')
-
- no = newLine[stop2+1:]
- stop3 = no.find(':')
-
-
- if find == device:
- self.add = newLine[0:stop2]
- self.num = no[0:stop3]
- file.close()