MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_legacy_description

Function get_legacy_description

src/packagedcode/pypi.py:1931–1938  ·  view source on GitHub ↗

Return the text of a legacy DESCRIPTION.rst file.

(location)

Source from the content-addressed store, hash-verified

1929
1930
1931def get_legacy_description(location):
1932 """
1933 Return the text of a legacy DESCRIPTION.rst file.
1934 """
1935 location = os.path.join(location, 'DESCRIPTION.rst')
1936 if os.path.exists(location):
1937 with open(location) as i:
1938 return i.read()
1939
1940
1941def get_declared_license(metainfo):

Callers 1

get_descriptionFunction · 0.85

Calls 3

joinMethod · 0.45
existsMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected