Skip to content

Commit acf59c7

Browse files
authored
Merge pull request #2786 from adii21-Ux/docstring_fix
fix docstring in debian_copyright.py
2 parents 2e36eaf + fdfe74f commit acf59c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/packagedcode/debian_copyright.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def from_file(cls, location, check_consistency=False):
349349
dc = cls(location=location, debian_copyright=debian_copyright)
350350
dc.detect_license()
351351
dc.detect_copyrights()
352-
dc.get_primary_license()
352+
dc.set_primary_license()
353353

354354
if check_consistency:
355355
dc.consistentcy_errors = edc.get_consistentcy_errors()
@@ -369,10 +369,10 @@ def license_matches(self):
369369
)
370370
return chain.from_iterable(matches)
371371

372-
def get_primary_license(self):
372+
def set_primary_license(self):
373373
"""
374-
Return a license expression string which is the primary license for the
375-
debian copyright file.
374+
Compute and set the primary license expression of this
375+
debian copyright file to`primary_license`.
376376
377377
A primary license in a debian copyright file is the license in the
378378
Header paragraph or the `Files: *` paragraph.

0 commit comments

Comments
 (0)