Dataforms: DataRecord(extend=None) != DataRecord()
This commit is contained in:
		
							parent
							
								
									ae9d082587
								
							
						
					
					
						commit
						964c3752cb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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']
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue