Make linting happy.
This commit is contained in:
parent
5f8b50c094
commit
72e6482994
|
@ -598,13 +598,16 @@ class Package(Module):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for pkg_prefix in pkg_prefixes:
|
for pkg_prefix in pkg_prefixes:
|
||||||
if pkg_prefix in path.parts() and pkg_prefix.join('__init__.py') != path:
|
if (
|
||||||
|
pkg_prefix in path.parts()
|
||||||
|
and pkg_prefix.join("__init__.py") != path
|
||||||
|
):
|
||||||
skip = True
|
skip = True
|
||||||
|
|
||||||
if skip:
|
if skip:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if path.isdir() and path.join('__init__.py').check(file=1):
|
if path.isdir() and path.join("__init__.py").check(file=1):
|
||||||
pkg_prefixes.add(path)
|
pkg_prefixes.add(path)
|
||||||
|
|
||||||
for x in self._collectfile(path):
|
for x in self._collectfile(path):
|
||||||
|
|
Loading…
Reference in New Issue