1. Tarek Ziadé
  2. flake8
  3. Pull requests

Pull requests

#36 Declined
Repository
Deleted repository
Branch
default (152e5053eef6)
Repository
flake8
Branch
default

Fix for py3k compatible problem of git hook.

Author
  1. Jiangge Zhang
Reviewers
Description

The string compatible problem under Python 3 has been fixed.

Traceback (most recent call last):
  File ".git/hooks/pre-commit", line 8, in <module>
    sys.exit(git_hook(complexity=12, strict=True))
  File "/home/tonyseek/Projects/flake8/flake8/hooks.py", line 48, in git_hook
    report = flake8_style.check_files([f for f in files_modified if
  File "/home/tonyseek/Projects/flake8/flake8/hooks.py", line 49, in <listcomp>
    f.endswith('.py')])
TypeError: endswith first arg must be bytes or a tuple of bytes, not str

Comments (0)