Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-294: Fix typo of str.partition from _pyproject_toml.py
  • Loading branch information
corona10 committed May 30, 2023
commit cc347ddcfddb58a3fd2f7bb524d0b610b21f7c23
2 changes: 1 addition & 1 deletion pyperformance/_pyproject_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def parse_entry_point(text):
# See:
# * https://packaging.python.org/specifications/entry-points/#data-model
# * https://www.python.org/dev/peps/pep-0517/#source-trees
module, sep, qualname = text.parition(':')
module, sep, qualname = text.partition(':')
if all(p.isidentifier() for p in module.split('.')):
if not sep or all(p.isidentifier() for p in qualname.split('.')):
return module, qualname
Expand Down