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

Method load

src/packagedcode/godeps.py:136–143  ·  view source on GitHub ↗

Load self from a location string or a file-like object containing a Godeps JSON.

(self, location)

Source from the content-addressed store, hash-verified

134 self.load(self.location)
135
136 def load(self, location):
137 """
138 Load self from a location string or a file-like object containing a
139 Godeps JSON.
140 """
141 with io.open(location, encoding='utf-8') as godep:
142 text = godep.read()
143 return self.loads(text)
144
145 def loads(self, text):
146 """

Callers 15

__attrs_post_init__Method · 0.95
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
get_maven_pomFunction · 0.45

Calls 3

loadsMethod · 0.95
openMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected