Skip to content

Replace last os.path occurrencies by pathlib #3224

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

Merged
merged 2 commits into from
May 5, 2023

Conversation

Adrien-LUDWIG
Copy link
Contributor

Overview: What does this pull request change?

Replace the last 2 os.path occurrencies by pathlib.

Removes one line of dead code.

Motivation and Explanation: Why and how do your changes improve the library?

This resolves last comment of #485.

Links to added or changed documentation pages

Further Information and Comments

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
  • If applicable: newly added functions and classes are tested

This resolves [last
comment](ManimCommunity#485 (comment))
of ManimCommunity#485.

Removes one line of dead code.
@Adrien-LUDWIG
Copy link
Contributor Author

Hi,

I saw that pre-commit is having with files I did not touch. So, I investigated to pinpoint the source of the problem and when it was introduced.

It comes from a recent PR merged in flake8-comprensions, the fixes this issue. I found it through this issue.

An issue should be opened here to remove lists in any/all. I'll try to do it when I have some time if it is not done before.

Copy link
Member

@behackl behackl left a comment

Choose a reason for hiding this comment

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

Your changes LGTM, thanks for your contribution! I have opened an issue regarding the changes to be made due to the flake8 upgrade; thanks for the fine analysis!

@behackl behackl merged commit 05594ec into ManimCommunity:main May 5, 2023
abul4fia pushed a commit to abul4fia/manim that referenced this pull request May 10, 2023
This resolves [last
comment](ManimCommunity#485 (comment))
of ManimCommunity#485.

Removes one line of dead code.

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
behackl added a commit that referenced this pull request Jun 20, 2023
* Small fix in the code of ArcBrace

Avoiding the creation of an Arc object at import time

* Replace last `os.path` occurrencies by `pathlib` (#3224)

This resolves [last
comment](#485 (comment))
of #485.

Removes one line of dead code.

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Made docbuild errors easier to debug + fixed error from changed exception class (#3229)

* Make errors during docbuild somewhat easier to debug

* fix an issue with docbuild under py3.10+

* Make set_resampling_algorithm() return self

---------

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Adrien ANTON LUDWIG <42720099+Adrien-ANTON-LUDWIG@users.noreply.github.com>
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.

Migrating to PathLib instead of os.path
2 participants