```python
>>> a = DataBuffer('abcd')
>>> str(a)
'abcd'
```
This PR encodes a python3 str to bytes using `charmap`. It verifies that `bytes != str` to only encode a python3 str and not a python2 str.
Diffstat (limited to 'python/scriptingprovider.py')