You're assigning it to the bound function rather than calling the function. Use the "call" operator:
data = infile.readlines()
Thanks for spoiling the lesson. Nicks needs to learn how to debug 4 line programs without someone giving him the answer.
-- DaveA -- https://mail.python.org/mailman/listinfo/python-list