Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-dest: string compatibility for python3 #1632

Merged
merged 1 commit into from
Sep 6, 2017

Commits on Aug 9, 2017

  1. python-dest: string compatibility for python3

    Two changes in python3 c api compared to python2
    1) In python3, all strings are utf8, so PyBytes_Check will fail. This
    patch will use PyUnicode_Check for python3 instead.
    2) The function PyBytes_AsString is removed in python3. This patch
    will use PyUnicode_AsUTF8 instead.
    
    Signed-off-by: Antal Nemes <antal.nemes@balabit.com>
    furiel committed Aug 9, 2017
    Configuration menu
    Copy the full SHA
    fe40a9e View commit details
    Browse the repository at this point in the history