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

Replace deprecated imp by importlib #1411

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

DavidMStraub
Copy link
Member

imp is deprecated and will be removed in Python 3.12, to be released this year.

The code I added will work with Python 3.4 and up, which is enough four Gramps 5.1 and up.

Could also be cherry-picked into the 5.1 maintenance branch.

@DavidMStraub
Copy link
Member Author

@Nick-Hall, as part of this PR, I replaced the Ubuntu 18.04 image for the unit tests with 20.04, as 18.04 is no longer supported by Github:
image

@Nick-Hall
Copy link
Member

Thanks. I see that 18.04 was removed on 12th Jan.

I'll probably cherry-pick that commit immediately.

@Nick-Hall
Copy link
Member

Code added to Gramps 5.1 is required to work with python 3.3, so I'll merge this into the master branch only.

@Nick-Hall Nick-Hall added Code Quality Approved A pull request that has been approved, but may need further testing. labels Mar 7, 2023
@Nick-Hall Nick-Hall merged commit 47f392e into gramps-project:master Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved A pull request that has been approved, but may need further testing. Code Quality
Projects
None yet
2 participants