forked from ungleich-public/cdist
		
	-- DeprecationWarning: object.__new__() takes no parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								b5c01f7354
							
						
					
				
			
			
				commit
				
					
						ae15779c81
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -52,7 +52,7 @@ class Type(object):
 | 
			
		|||
        # name is second argument
 | 
			
		||||
        name = args[1]
 | 
			
		||||
        if not name in cls._instances:
 | 
			
		||||
            instance = super(Type, cls).__new__(cls, *args, **kwargs)
 | 
			
		||||
            instance = super(Type, cls).__new__(cls)
 | 
			
		||||
            cls._instances[name] = instance
 | 
			
		||||
        return cls._instances[name]
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue