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
4 changes: 2 additions & 2 deletions hooks/check-message.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@

# Check trailing whitespace
if l != l.rstrip():
sys.stderr.write("*** Message contains trailing whitespace: '{}'\n".format(l))
sys.stderr.write("*** Message contains trailing whitespace: {!a}\n".format(l))
sys.exit(1)

# Check ASCII, and no control chars
if any(ord(c) < 32 or ord(c) > 127 for c in l):
sys.stderr.write("*** Message contains non-ASCII characters or tabs: '{}'\n".format(l))
sys.stderr.write("*** Message contains non-ASCII characters or tabs: {!a}\n".format(l))
sys.exit(1)

# Check first line
Expand Down