Skip to content

Commit

Permalink
Adjust spacing in colon seach mode NotImplementedError
Browse files Browse the repository at this point in the history
This is a (very) minor improvement that uses the more common
convention of not padding parentheses on the inside with spaces in
prose, in an exception message.
  • Loading branch information
EliahKagan committed Feb 28, 2024
1 parent b2b6f7c commit c67b2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/repo/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def rev_parse(repo: "Repo", rev: str) -> Union["Commit", "Tag", "Tree", "Blob"]:
# Are we in colon search mode?
if rev.startswith(":/"):
# Colon search mode
raise NotImplementedError("commit by message search ( regex )")
raise NotImplementedError("commit by message search (regex)")
# END handle search

obj: Union[Commit_ish, "Reference", None] = None
Expand Down

0 comments on commit c67b2e2

Please sign in to comment.