(cls, base=u'', encoding=None, errors='strict')
| 66 | __slots__ = () |
| 67 | |
| 68 | def __new__(cls, base=u'', encoding=None, errors='strict'): |
| 69 | if hasattr(base, '__html__'): |
| 70 | base = base.__html__() |
| 71 | if encoding is None: |
| 72 | return text_type.__new__(cls, base) |
| 73 | return text_type.__new__(cls, base, encoding, errors) |
| 74 | |
| 75 | def __html__(self): |
| 76 | return self |