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

does this project port to python 3? #76

Open
bbqz007 opened this issue Sep 26, 2023 · 1 comment
Open

does this project port to python 3? #76

bbqz007 opened this issue Sep 26, 2023 · 1 comment

Comments

@bbqz007
Copy link

bbqz007 commented Sep 26, 2023

it seems that some functions are under the prototypes on python 2 .

@bbqz007
Copy link
Author

bbqz007 commented Sep 28, 2023

temporary solution:
2to3; # but it can not solve sorts of create_string_buffer
find . -name ".py" -type f -exec sed -i "s/create_unicode_buffer(u'', /create_unicode_buffer(/gi" {} ;
find . -name "
.py" -type f -exec sed -i 's/create_unicode_buffer(u"", /create_unicode_buffer(/gi' {} ;
find . -name ".py" -type f -exec sed -i "s/create_string_buffer('', /create_string_buffer(/gi" {} ;
find . -name "
.py" -type f -exec sed -i 's/create_string_buffer("", /create_string_buffer(/gi' {} ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant