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

Fix 1 error and 1 typo #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

tatsuropfgt
Copy link

@tatsuropfgt tatsuropfgt commented Nov 20, 2023

Hi!
I fixed 1 error and 1 typo(or error)

error

The suffix of the with_suffix method in pathlib.py should start with ".". The original code gave me an error, so I added a ".".
The following code is part of the pathlib.py of Python3.9

    def with_suffix(self, suffix):
        ...
        if suffix and not suffix.startswith('.') or suffix == '.':
            raise ValueError("Invalid suffix %r" % (suffix))
        ...

typo

The original shell scripts in README didn't work. So, I

  • used quotes to ensure consistent behavior
  • changed to the correct path for .py file

@tatsuropfgt tatsuropfgt changed the title Fix missing dot in with_suffix method call Fix 2 small errors Nov 20, 2023
@tatsuropfgt tatsuropfgt changed the title Fix 2 small errors Fix 1 error and 1 typo Nov 20, 2023
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.

1 participant