Skip to content

Commit

Permalink
More descriptive function name.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrahunt committed Sep 7, 2019
1 parent 3da9a89 commit 752203b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pip/_internal/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,15 @@ class MissingCallableSuffix(Exception):
pass


def _assert_valid_entrypoint(specification):
def _raise_for_invalid_entrypoint(specification):
entry = get_export_entry(specification)
if entry is not None and entry.suffix is None:
raise MissingCallableSuffix(str(entry))


class PipScriptMaker(ScriptMaker):
def make(self, specification, options=None):
_assert_valid_entrypoint(specification)
_raise_for_invalid_entrypoint(specification)
return super(PipScriptMaker, self).make(specification, options)


Expand Down

0 comments on commit 752203b

Please sign in to comment.