Changeset 5323
- Timestamp:
- 05/23/07 20:25:51 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/unicode/django/template/__init__.py
r5320 r5323 707 707 del bits[0] 708 708 if isinstance(current, (basestring, Promise)): 709 current = force_unicode(current) 709 try: 710 current = force_unicode(current) 711 except UnicodeDecodeError: 712 # Failing to convert to unicode can happen sometimes (e.g. debug 713 # tracebacks). So we allow it in this particular instance. 714 pass 710 715 return current 711 716
