mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 12:54:17 +00:00
Fix failure on Python 2
This commit is contained in:
parent
a2f836a23b
commit
c431f09ac3
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
|
||||||
if _fix_file(
|
if _fix_file(
|
||||||
filename,
|
filename,
|
||||||
md,
|
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))
|
print('Fixing {}'.format(filename))
|
||||||
return_code = 1
|
return_code = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue