From 2fb26fed1405bb10d7ece0823c16bd8185109a56 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Fri, 11 Jul 2008 07:49:04 -0400 Subject: [PATCH] Avoid using "file" as a variable name. --- plugin.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin.py b/plugin.py index 17aa71d..10d8b14 100644 --- a/plugin.py +++ b/plugin.py @@ -135,15 +135,15 @@ class Plugin(object): def build_recursive_list(path, recurse=True): files = [] try: - for file in os.listdir(path): - if file.startswith('.'): + for f in os.listdir(path): + if f.startswith('.'): continue - file = os.path.join(path, file) - if recurse and os.path.isdir(file): - files.extend(build_recursive_list(file)) + f = os.path.join(path, f) + if recurse and os.path.isdir(f): + files.extend(build_recursive_list(f)) else: - if not filterFunction or filterFunction(file, file_type): - files.append(file) + if not filterFunction or filterFunction(f, file_type): + files.append(f) except: pass return files -- 2.11.4.GIT