chibisov / drf-extensions

DRF-extensions is a collection of custom extensions for Django REST Framework
http://chibisov.github.io/drf-extensions/docs
MIT License
1.47k stars 208 forks source link

Fixes for building with python3.6 #241

Closed mwasilew closed 6 years ago

mwasilew commented 6 years ago

In python3.6 write() doesn't support bytes any more. When switching to str it is important to keep the utf-8 encoding. When using stdin/stdout PYTHONIOENCODING=utf-8 ensures that. Docs postprocessing script also has to use utf-8 to make all reads and writes possible.

Signed-off-by: Milosz Wasilewski milosz.wasilewski@linaro.org