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

Base64 update #9

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Base64 update #9

merged 2 commits into from
Oct 15, 2024

Conversation

stephengaito
Copy link
Contributor

@stephengaito stephengaito commented Mar 10, 2022

Bug Fix

This PR is required to allow pymakeself to work with Python post 3.9...

The current version of pymakeself makes use of the depreciated base64.decodestring method which was removed in Python 3.9.

This PR adds a check for python version, and if the version is later than 3.1 it uses the base54.decodebytes method.

(I have tested this on my own archive using my "merged_main" branch.)

Thanks for a very useful tool!

@lvoli
Copy link

lvoli commented Nov 13, 2023

Please merge

@lvoli
Copy link

lvoli commented Oct 15, 2024

@gammazero could you please merge this change?

if sys.version_info >= (3, 1) :
fp.write(base64.decodebytes(PKG_DATA))
else :
fp.write(base64.decodestring(PKG_DATA))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably do not need to support this anymore

@gammazero gammazero merged commit ea3ff9e into gammazero:master Oct 15, 2024
@lvoli
Copy link

lvoli commented Nov 5, 2024 via email

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

Successfully merging this pull request may close these issues.

3 participants