Changes between Initial Version and Version 6 of Ticket #12140
- Timestamp:
- Apr 16, 2011, 1:42:59 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12140
- Property Triage Stage Unreviewed → Accepted
- Property Version 1.1 → SVN
- Property Severity → Normal
- Property Type → Bug
- Property Patch needs improvement set
-
Ticket #12140 – Description
initial v6 1 django.utils.http.urlencodedoesn'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: 2 2 3 urllib.urlencode({'foo':[]},True) => '' 3 `urllib.urlencode({'foo':[]},True) => ''` 4 4 5 django.utils.http.urlencode({'foo':[]},True) => 'foo=%5B%5D' 5 `django.utils.http.urlencode({'foo':[]},True) => 'foo=%5B%5D'` 6 6 7 7 The attached diff has a change at line 557 in trunk/django/utils/http.py: 8 {{{ 8 9 - isinstance(v, (list,tuple)) and [smart_str(i) for i in v] or smart_str(v)) 9 10 + [smart_str(i) for i in v] if isinstance(v, (list,tuple)) else smart_str(v)) 11 }}} 10 12 11 13 Attached.