[master 2/7] Fix a python3 related error in the pre-commit hook

dashea installerbot-noreply at redhat.com
Thu Sep 3 22:08:46 UTC 2015


From: David Shea <dshea at redhat.com>

---
 scripts/githooks/pre-commit | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/githooks/pre-commit b/scripts/githooks/pre-commit
index cd4b0b6..7b7345c 100755
--- a/scripts/githooks/pre-commit
+++ b/scripts/githooks/pre-commit
@@ -61,7 +61,7 @@ for gf in git_iter:
     # If the file is being renamed, the target filename (which we want) is on
     # the current line, and the next line is the source, which we want to skip
     if gf[0] == 'R':
-        git_iter.next()
+        next(git_iter)
 
     if is_python(gf[3:]):
         pylint_names.append(gf[3:])


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/98e0dbfef24c4dbf949280058bae9ccac9c01f96


More information about the anaconda-patches mailing list