Dataforms: DataRecord(extend=None) != DataRecord()

This commit is contained in:
Tomasz Melcer 2007-06-09 12:21:35 +00:00
parent ae9d082587
commit 964c3752cb
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class WrongFieldValue(Error): pass # when we get xmpp.Node which contains bad fi
class ExtendedNode(xmpp.Node, object):
@classmethod
def __new__(cls, *a, **b):
if 'extend' not in b.keys():
if 'extend' not in b.keys() or not b[keys]:
return object.__new__(cls)
extend = b['extend']