Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aboutcode-org/scancode-toolkit
/ __copy__
Method
__copy__
src/licensedcode/models.py:417–421 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
415
setattr(self, k, v)
416
417
def
__copy__(self):
418
oldl = self.to_dict()
419
newl = License(key=self.key)
420
newl.update(oldl)
421
return
newl
422
423
def
_to_dict(self, include_field):
424
""
"
Callers
nothing calls this directly
Calls
3
to_dict
Method · 0.95
update
Method · 0.95
License
Class · 0.85
Tested by
no test coverage detected