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

Ensure Path.glob argument is a string #62

Merged
merged 1 commit into from
Aug 15, 2020

Conversation

abn
Copy link
Member

@abn abn commented Aug 15, 2020

When excluded path is not a glob pattern, pathlib implementation relies on sys.intern, which expects a string. However, the value passed in is of tomlkit.items.String. This change ensures poetry does not crash in this scenario.

Resolves: python-poetry/poetry#2798

Co-authored-by: @darkvariantdivine

@abn abn added the Bug Something isn't working label Aug 15, 2020
@abn abn requested a review from a team August 15, 2020 18:33
When excluded path is not a glob pattern, pathlib implementation relies
on `sys.intern`, which expects a string. However, the value passed in
is of `tomlkit.items.String`. This change ensures poetry does not
crash in this scenario.

Resolves: python-poetry/poetry#2798

Co-authored-by: David Lee <[email protected]>
@finswimmer finswimmer merged commit 9a05290 into python-poetry:master Aug 15, 2020
@abn abn deleted the issues/2798 branch August 15, 2020 20:41
@sdispater sdispater mentioned this pull request Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Can't intern string
2 participants