(s, enc='utf8', err='strict')
| 142 | |
| 143 | |
| 144 | def touni(s, enc='utf8', err='strict'): |
| 145 | if isinstance(s, bytes): |
| 146 | return s.decode(enc, err) |
| 147 | return unicode("" if s is None else s) |
| 148 | |
| 149 | |
| 150 | tonat = touni if py3k else tob |
no test coverage detected
searching dependent graphs…