Changeset 5388
- Timestamp:
- 05/31/07 04:03:29 (1 year ago)
- Files:
-
- django/branches/unicode/django/utils/encoding.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/unicode/django/utils/encoding.py
r5322 r5388 28 28 strings, rather than kept as lazy objects. 29 29 """ 30 if s is None: 31 return s 30 32 if not isinstance(s, basestring,): 31 33 if hasattr(s, '__unicode__'): … … 73 75 # characters that are not explicitly excluded by the list at the end of 74 76 # section 3.1 of RFC 3987. 77 if iri is None: 78 return iri 75 79 return urllib.quote(smart_str(iri), safe='/#%[]=:;$&()+,!?') 76 80
