Remove some __nonzero__ methods in tests/vim.py
Just __len__ is good enough here
This commit is contained in:
parent
07c533d1b2
commit
b99ad3904e
|
@ -94,10 +94,6 @@ class _Buffers(object):
|
|||
def __contains__(self, item):
|
||||
return item in self.d
|
||||
|
||||
@_vim
|
||||
def __nonzero__(self):
|
||||
return bool(self.d)
|
||||
|
||||
@_vim
|
||||
def _keys(self):
|
||||
return self.d.keys()
|
||||
|
@ -128,10 +124,6 @@ class _ObjList(object):
|
|||
def __iter__(self):
|
||||
return iter(self.l)
|
||||
|
||||
@_vim
|
||||
def __nonzero__(self):
|
||||
return not not self.l
|
||||
|
||||
@_vim
|
||||
def _pop(self, *args, **kwargs):
|
||||
return self.l.pop(*args, **kwargs)
|
||||
|
|
Loading…
Reference in New Issue