#11443: smart_str can't encode a unicde string
----------------------------------+-----------------------------------------
 Reporter:  [email protected]  |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  Uncategorized         |     Version:  1.0       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 I'm getting

 encode() takes at most 2 arguments (3 given)

 From line 95 of django/utils/encoding.py :

     elif isinstance(s, unicode):
         return s.encode(encoding, errors)

 I think it should be

     elif isinstance(s, unicode):
         return s.encode(encoding)

 I'm on python 2.5

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11443>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to