From a4dc387bfbc56ba97701bfdde34b033ada9bb5c1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 19 Apr 2021 15:27:13 +0200 Subject: Merging upstream version 0.15.1. Signed-off-by: Daniel Baumann --- gitlint/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitlint/utils.py') diff --git a/gitlint/utils.py b/gitlint/utils.py index 6976aac..c91184b 100644 --- a/gitlint/utils.py +++ b/gitlint/utils.py @@ -71,7 +71,7 @@ def getpreferredencoding(): # This scenario is fairly common on Windows where git sets LC_CTYPE=C when invoking the commit-msg hook, which # is not a valid encoding in Python on Windows. try: - codecs.lookup(default_encoding) + codecs.lookup(default_encoding) # pylint: disable=no-member except LookupError: default_encoding = fallback_encoding -- cgit v1.2.3