[Tutor] file open error
jalilsan at gmail.com
Fri Feb 9 00:16:27 CET 2007
I have this simple code and i cant seem to get it to run.
here is the code.
from os import *
hostname =raw_input("Host name : ") or '<unknown>'
mac_addr =input("Mac address : ")
m = re.match(hostname,fh.readlines())
Here is the error I get when i try to run the code
monkeysee% python sys_wireless.py
Host name :
Mac address : 1234567
Traceback (most recent call last):
File "sys_wireless.py", line 8, in ?
TypeError: an integer is required
I dont know what the issue is?
any hints ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor