summaryrefslogtreecommitdiff
path: root/pylint/lint/expand_modules.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/lint/expand_modules.py')
-rw-r--r--pylint/lint/expand_modules.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/lint/expand_modules.py b/pylint/lint/expand_modules.py
index 8eaf98847..7a0dc7004 100644
--- a/pylint/lint/expand_modules.py
+++ b/pylint/lint/expand_modules.py
@@ -8,8 +8,8 @@ from pylint.typing import ErrorDescriptionDict, ModuleDescriptionDict
def _modpath_from_file(filename, is_namespace, path=None):
- def _is_package_cb(path, parts):
- return modutils.check_modpath_has_init(path, parts) or is_namespace
+ def _is_package_cb(inner_path, parts):
+ return modutils.check_modpath_has_init(inner_path, parts) or is_namespace
return modutils.modpath_from_file_with_callback(
filename, path=path, is_package_cb=_is_package_cb