From ac1cb9ab7b1bc13f68a7cb979971b9ebaae93fb2 2021-10-25 03:11:13 From: Naelson Douglas Date: 2021-10-25 03:11:13 Subject: [PATCH] removed a name shadowing pitfall --- diff --git a/setupbase.py b/setupbase.py index 7befb88..e6330ea 100644 --- a/setupbase.py +++ b/setupbase.py @@ -95,8 +95,8 @@ def find_packages(): """ excludes = ['deathrow', 'quarantine'] packages = [] - for dir,subdirs,files in os.walk('IPython'): - package = dir.replace(os.path.sep, '.') + for directory, subdirs,files in os.walk('IPython'): + package = directory.replace(os.path.sep, '.') if any(package.startswith('IPython.'+exc) for exc in excludes): # package is to be excluded (e.g. deathrow) continue