(value)
| 788 | raise TypeError("str expected, not %s" % type(value).__name__) |
| 789 | return value.encode(encoding, 'surrogateescape') |
| 790 | def decode(value): |
| 791 | return value.decode(encoding, 'surrogateescape') |
| 792 | encodekey = encode |
| 793 | data = environ |
| 794 | return _Environ(data, |