summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/igor.py b/igor.py
index c875a6f9..15e385e7 100644
--- a/igor.py
+++ b/igor.py
@@ -286,9 +286,9 @@ def do_check_eol():
def check_files(root, patterns, **kwargs):
"""Check a number of files for whitespace abuse."""
- for root, dirs, files in os.walk(root):
+ for where, dirs, files in os.walk(root):
for f in files:
- fname = os.path.join(root, f)
+ fname = os.path.join(where, f)
for p in patterns:
if fnmatch.fnmatch(fname, p):
check_file(fname, **kwargs)