Load self from a location string or a file-like object containing a Godeps JSON.
(self, location)
| 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 | """ |