Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master, master-1, and master-0

Add docstrings.

Changeset 730abce6c541

Parent 56599712bd93

by Jelmer Vernooij

Changes to one file · Browse files at 730abce6c541 Showing diff from parent 56599712bd93 Diff from another changeset...

 
206
207
208
 
 
 
 
209
210
211
 
213
214
215
 
216
217
218
 
219
220
221
 
206
207
208
209
210
211
212
213
214
215
 
217
218
219
220
221
222
223
224
225
226
227
@@ -206,6 +206,10 @@
  yield o     def __contains__(self, needle): + """Check if an object is present. + + :param needle: SHA1 of the object to check for + """   # FIXME: This could be more efficient   for sha, path in self.shas:   if sha == needle: @@ -213,9 +217,11 @@
  return False     def __getitem__(self, key): + """Find an object by SHA1."""   return self.store[key]     def __len__(self): + """Return the number of objects."""   return len(self.shas)