Fixed #8149 -- Fixed File.__iter__() to handle other newline types.

Fixed File to use universal newlines. The following are recognized as
ending a line: the Unix end-of-line convention '\n', the Windows
convention '\r\n', and the old Macintosh convention '\r'.