Changes between Initial Version and Version 6 of Ticket #12140


Ignore:
Timestamp:
Apr 16, 2011, 1:42:59 AM (14 years ago)
Author:
Julien Phalip
Comment:

Reformatted description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12140

    • Property Triage Stage UnreviewedAccepted
    • Property Version 1.1SVN
    • Property SeverityNormal
    • Property TypeBug
    • Property Patch needs improvement set
  • Ticket #12140 – Description

    initial v6  
    1 django.utils.http.urlencode doesn't behave the same as urllib.urlencode for empty lists:
     1`django.utils.http.urlencode` doesn't behave the same as urllib.urlencode for empty lists:
    22
    3 urllib.urlencode({'foo':[]},True) => ''
     3`urllib.urlencode({'foo':[]},True) => ''`
    44
    5 django.utils.http.urlencode({'foo':[]},True) => 'foo=%5B%5D'
     5`django.utils.http.urlencode({'foo':[]},True) => 'foo=%5B%5D'`
    66
    77The attached diff has a change at line 557 in trunk/django/utils/http.py:
     8{{{
    89-         isinstance(v, (list,tuple)) and [smart_str(i) for i in v] or smart_str(v))
    910+         [smart_str(i) for i in v] if isinstance(v, (list,tuple)) else smart_str(v))
     11}}}
    1012
    1113Attached.
Back to Top