diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-18 10:40:16 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-18 10:46:39 +0100 |
commit | 82849578e61a7dfb47fc76dcbe18b1e3b6a36951 (patch) | |
tree | db49b89e8956d7ebf5231aea4c23e2664668ab77 /lib/git/util.py | |
parent | 7a320abc52307b4d4010166bd899ac75024ec9a7 (diff) | |
download | gitpython-82849578e61a7dfb47fc76dcbe18b1e3b6a36951.tar.gz |
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
Diffstat (limited to 'lib/git/util.py')
-rw-r--r-- | lib/git/util.py | 8 |
1 files changed, 0 insertions, 8 deletions
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 |