(value)
| 758 | raise TypeError("str expected, not %s" % type(value).__name__) |
| 759 | return value.encode(encoding, 'surrogateescape') |
| 760 | def decode(value): |
| 761 | return value.decode(encoding, 'surrogateescape') |
| 762 | encodekey = encode |
| 763 | data = environ |
| 764 | return _Environ(data, |