mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
Fixed generation a list of files for projects that uses namespaces (PEP 420)
This commit is contained in:
parent
ee7081c8ce
commit
9320150e25
1 changed files with 2 additions and 2 deletions
|
|
@ -71,14 +71,14 @@ class Flake8(setuptools.Command):
|
|||
continue
|
||||
|
||||
seen_package_directories += (package_directory + ".",)
|
||||
yield package_directory
|
||||
yield package_directory.replace('.', os.path.sep)
|
||||
|
||||
def module_files(self):
|
||||
"""Collect the files listed as py_modules."""
|
||||
modules = self.distribution.py_modules or []
|
||||
filename_from = "{0}.py".format
|
||||
for module in modules:
|
||||
yield filename_from(module)
|
||||
yield filename_from(module.replace('.', os.path.sep))
|
||||
|
||||
def distribution_files(self):
|
||||
"""Collect package and module files."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue