Fix conditions (use "is not")
This commit is contained in:
parent
41157050fe
commit
baa0160109
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue