#8149: UploadedFile doesn't iterate over lines with \r line endings
-------------------------------------+-------------------------------------
Reporter: mrmachine | Owner: nobody
Type: | Status: closed
Cleanup/optimization | Version: master
Component: File | Resolution: fixed
uploads/storage | Triage Stage: Ready for
Severity: Normal | checkin
Keywords: UploadedFile | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"eb4f6de980c5148ba48d4ed67f31cca27dd132a8"]:
{{{
#!CommitTicketReference repository=""
revision="eb4f6de980c5148ba48d4ed67f31cca27dd132a8"
Fixed #8149 -- Made File.__iter__() support 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'.
http://www.python.org/dev/peps/pep-0278
Thanks tchaumeny for review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/8149#comment:18>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.1865c8198a8e45254e1ec47349526baf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.