Opened 15 years ago
Closed 15 years ago
#11443 closed (worksforme)
smart_str can't encode a unicde string
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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
Note:
See TracTickets
for help on using tickets.
Cannot reproduce this bug: