Remove some __nonzero__ methods in tests/vim.py

Just __len__ is good enough here
This commit is contained in:
ZyX 2014-08-03 10:12:54 +04:00
parent 07c533d1b2
commit b99ad3904e
1 changed files with 0 additions and 8 deletions

View File

@ -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)