| commit | c431f09ac30a903d74e47257bc3d1561a22f06e2 | [log] [tgz] |
|---|---|---|
| author | iconmaster5326 <crazybonesj@yahoo.com> | Fri Oct 25 11:54:00 2019 -0400 |
| committer | iconmaster5326 <crazybonesj@yahoo.com> | Fri Oct 25 11:54:00 2019 -0400 |
| tree | b0cd8c94d600fa644a97b4920ef1c181e769bc95 | |
| parent | a2f836a23b095c19744fb5a73a3584cffa90bf8d [diff] |
Fix failure on Python 2
diff --git a/pre_commit_hooks/trailing_whitespace_fixer.py b/pre_commit_hooks/trailing_whitespace_fixer.py index 70ab382..6063684 100644 --- a/pre_commit_hooks/trailing_whitespace_fixer.py +++ b/pre_commit_hooks/trailing_whitespace_fixer.py
@@ -94,7 +94,7 @@ if _fix_file( filename, md, - None if args.chars is None else bytes(args.chars, 'utf-8'), + None if args.chars is None else bytes(args.chars.encode('utf-8')), ): print('Fixing {}'.format(filename)) return_code = 1