Ticket #184: core.py.patch
| File core.py.patch, 554 bytes (added by brickenstein@…, 16 years ago) |
|---|
-
core.py.
old new 402 402 return cls() 403 403 if type(text) is cls: 404 404 return text 405 text = unicode(text).replace('&', '&') \ 405 if isinstance(text,str): 406 text=text.decode('utf-8') 407 else: 408 text = unicode(text) 409 text=text.replace('&', '&') \ 406 410 .replace('<', '<') \ 407 411 .replace('>', '>') 408 412 if quotes:
