Skip to content

fix docstring in debian_copyright.py #2786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/packagedcode/debian_copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def from_file(cls, location, check_consistency=False):
dc = cls(location=location, debian_copyright=debian_copyright)
dc.detect_license()
dc.detect_copyrights()
dc.get_primary_license()
dc.set_primary_license()

if check_consistency:
dc.consistentcy_errors = edc.get_consistentcy_errors()
Expand All @@ -369,10 +369,10 @@ def license_matches(self):
)
return chain.from_iterable(matches)

def get_primary_license(self):
def set_primary_license(self):
"""
Return a license expression string which is the primary license for the
debian copyright file.
Compute and set the primary license expression of this
debian copyright file to`primary_license`.

A primary license in a debian copyright file is the license in the
Header paragraph or the `Files: *` paragraph.
Expand Down