simple print is not working..

lahirister at gmail.com lahirister at gmail.com
Wed May 24 21:41:06 CEST 2006


What is wrong with this script?

#!/usr/bin/python
fsfile = open('/tmp/fs_info.al', 'r')
for line in fsfiles.readlines():
print line
fsfile.close()


#./get_fs_info.py
  File "./get_fs_info.py", line 4
    print line
        ^
SyntaxError: invalid syntax


Any ideas?

Thanks
AL




More information about the Python-list mailing list