summaryrefslogtreecommitdiffstats
path: root/gitlint-core/gitlint/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlint-core/gitlint/utils.py')
-rw-r--r--gitlint-core/gitlint/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gitlint-core/gitlint/utils.py b/gitlint-core/gitlint/utils.py
index 20368b7..33b0584 100644
--- a/gitlint-core/gitlint/utils.py
+++ b/gitlint-core/gitlint/utils.py
@@ -1,4 +1,3 @@
-# pylint: disable=bad-option-value,unidiomatic-typecheck,undefined-variable,no-else-return
import codecs
import locale
import os
@@ -67,7 +66,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) # pylint: disable=no-member
+ codecs.lookup(default_encoding)
except LookupError:
default_encoding = fallback_encoding