Changes between Initial Version and Version 6 of Ticket #12140


Ignore:
Timestamp:
04/16/2011 01:42:59 AM (4 years ago)
Author:
julien
Comment:

Reformatted description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12140

    • Property Severity changed from to Normal
    • Property Patch needs improvement set
    • Property Needs tests unset
    • Property Version changed from 1.1 to SVN
    • Property Needs documentation unset
    • Property Type changed from to Bug
    • Property Triage Stage changed from Unreviewed to Accepted
  • 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