diff options
author | Martin Fischer <martin@push-f.com> | 2022-02-08 06:06:02 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-02-08 06:06:02 +0100 |
commit | 1ee484d1f9ba72218b5442d5ab4eb831525a52e7 (patch) | |
tree | d9bb607eb4ed8ff670491c2dd4e2c31b82ab4521 | |
parent | 64015ea63f1e2a71a8dde411c5bf3fc240c640ab (diff) |
refactor: rename packages variable to package_paths
-rwxr-xr-x | pydoc.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -156,17 +156,17 @@ if __name__ == '__main__': sourceid = path.name package_name, version = sourceid.rsplit('-', maxsplit=1) - packages = list(find_packages(sources / sourceid, package_name)) + package_paths = list(find_packages(sources / sourceid, package_name)) - if len(packages) == 0: + if len(package_paths) == 0: print( '[error] failed to determine package directory for', sources / sourceid ) continue - if len(packages) > 1: + if len(package_paths) > 1: print( - f"[warning] found multiple packages for {package_name} ({packages}), we're just using the first one" + f"[warning] found multiple packages for {package_name} ({package_paths}), we're just using the first one" ) docformat = overrides['docformat'].get(package_name, 'restructuredtext') @@ -182,7 +182,7 @@ if __name__ == '__main__': pydoctor.driver.main( # fmt: off [ - str(packages[0]), + str(package_paths[0]), '--html-output', out_dir, '--docformat', docformat, ] |