Ticket #12140: urlencode.diff

File urlencode.diff, 504 bytes (added by aneil, 15 years ago)

urlencode empty list bug patch

  • django/utils/http.py

     
    3838        query = query.items()
    3939    return urllib.urlencode(
    4040        [(smart_str(k),
    41          isinstance(v, (list,tuple)) and [smart_str(i) for i in v] or smart_str(v))
     41         [smart_str(i) for i in v] if isinstance(v, (list,tuple)) else smart_str(v))
    4242            for k, v in query],
    4343        doseq)
    4444
Back to Top