diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2018-01-01 22:04:16 +0100 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2018-01-01 22:04:16 +0100 |
| commit | 9806c4801cba4c239425226d9db8c5a7f8beb902 (patch) | |
| tree | 3e7feba9e15c9f08ecfdf4d9714d8dd37311d576 /.git-pre-commit | |
| parent | c604a55694cc70d54f7abea628d41d99842944cc (diff) | |
| parent | a86c6f65c123442802c44d27e45b5e014a62fe3b (diff) | |
| download | psutil-1102-proc-bitness.tar.gz | |
merge from master1102-proc-bitness
Diffstat (limited to '.git-pre-commit')
| -rwxr-xr-x | .git-pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.git-pre-commit b/.git-pre-commit index a2f2d18e..c3c605e0 100755 --- a/.git-pre-commit +++ b/.git-pre-commit @@ -75,7 +75,7 @@ def sh(cmd): def main(): out = sh("git diff --cached --name-only") - py_files = [x for x in out.split(b'\n') if x.endswith(b'.py') and + py_files = [x for x in out.split('\n') if x.endswith('.py') and os.path.exists(x)] lineno = 0 |
