From dcbf43489c86a47ce0ec731c15613f7daf551181 Mon Sep 17 00:00:00 2001 From: Iconmaster Date: Fri, 25 Oct 2019 12:15:11 -0400 Subject: [PATCH] Apply suggestion: the `bytes(...)` call does nothing here --- pre_commit_hooks/trailing_whitespace_fixer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit_hooks/trailing_whitespace_fixer.py b/pre_commit_hooks/trailing_whitespace_fixer.py index 6063684..b74b753 100644 --- a/pre_commit_hooks/trailing_whitespace_fixer.py +++ b/pre_commit_hooks/trailing_whitespace_fixer.py @@ -94,7 +94,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int if _fix_file( filename, md, - None if args.chars is None else bytes(args.chars.encode('utf-8')), + None if args.chars is None else args.chars.encode('utf-8'), ): print('Fixing {}'.format(filename)) return_code = 1