Eric Smith added the comment:
Either use mode 'U' or the io module if you want to match 3.x.
$ python
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> open('testFile').readlines
New submission from Miso.Kopera :
bug in "file.readlines()" function. It doesn't detect end of the line when line
is ending only with 0x0D byte. In python3.1 it works fine (as I expect). File
in attachment should has 6 lines not only 1 as python2.7 returns.
--
components: None
files: t