summaryrefslogtreecommitdiff
path: root/.git-pre-commit
diff options
context:
space:
mode:
Diffstat (limited to '.git-pre-commit')
-rwxr-xr-x.git-pre-commit2
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