From 82849578e61a7dfb47fc76dcbe18b1e3b6a36951 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 18 Nov 2010 10:40:16 +0100 Subject: ORIG_HEAD handling is now implemented in the ref-class itself, instead of being a special case of the commit method; includes tests util: Fixed iterable lists, which broke due to an incorrectly implemented __contains__ method --- lib/git/util.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/git/util.py') diff --git a/lib/git/util.py b/lib/git/util.py index b7446953..c945e6a3 100644 --- a/lib/git/util.py +++ b/lib/git/util.py @@ -317,14 +317,6 @@ class IterableList(list): except AttributeError: raise IndexError( "No item found with id %r" % (self._prefix + index) ) - def __contains__(self, item): - try: - self[item] - return True - except IndexError: - return False - # END handle exception - class Iterable(object): """Defines an interface for iterable items which is to assure a uniform -- cgit v1.2.1