Skip to content

Commit

Permalink
Merge pull request #2786 from adii21-Ux/docstring_fix
Browse files Browse the repository at this point in the history
fix docstring in debian_copyright.py
  • Loading branch information
pombredanne authored Jan 3, 2022
2 parents 2e36eaf + fdfe74f commit acf59c7
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit acf59c7

Please sign in to comment.