Skip to content

Fix polystr/polybytes to use import-time aliasing under Python 2

Peter Donis requested to merge pdonis/reposurgeon:poly-fix into master

Under Python 2, reposurgeon now simply aliases polystr and polybytes to str and bytes. Also, the wrapper logic for the standard streams is only activated under Python 3; the import-time check avoids this code path altogether under Python 2.

Merge request reports