mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-30 23:27:24 +01:00 
			
		
		
		
	Call other.__eq__ in irclib.Irc.__eq__ instead of using the == comparator.
Here, this operator is not reflexive, and Python 3 calls the second members resulting in a stack overflow.
This commit is contained in:
		
							parent
							
								
									1cb657ddb2
								
							
						
					
					
						commit
						e23fa611d6
					
				| @ -1073,7 +1073,7 @@ class Irc(IrcCommandDispatcher): | ||||
|         if isinstance(other, self.__class__): | ||||
|             return id(self) == id(other) | ||||
|         else: | ||||
|             return other == self | ||||
|             return other.__eq__(self) | ||||
| 
 | ||||
|     def __ne__(self, other): | ||||
|         return not (self == other) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Valentin Lorentz
						Valentin Lorentz