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

Method to_dict

src/licensedcode_test_utils.py:109–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 )
108
109 def to_dict(self):
110 dct = {}
111 if self.license_expressions:
112 dct['license_expressions'] = self.license_expressions
113 if self.language and self.language != 'en':
114 dct['language'] = self.language
115 if self.expected_failure:
116 dct['expected_failure'] = self.expected_failure
117 if self.notes:
118 dct['notes'] = self.notes
119 return dct
120
121 def dump(self):
122 """

Callers 1

dumpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected