Fix conditions (use "is not")

This commit is contained in:
Sébastien Helleu 2014-05-08 17:54:41 +02:00
parent 41157050fe
commit baa0160109
2 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ class WeechatObject:
self.separator1 = '\n%s' % self.indent if separator == '\n' else ''
def _str_value(self, v):
if type(v) is str and not v is None:
if type(v) is str and v is not None:
return '\'%s\'' % v
return str(v)