Convert basestring to str
Signed-off-by: Łukasz Żarnowiecki <dolohow@outlook.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
		
				
					committed by
					
						
						Nicolas Sebrecht
					
				
			
			
				
	
			
			
			
						parent
						
							1fb8ba9631
						
					
				
				
					commit
					4fbb5640ac
				
			@@ -1086,7 +1086,7 @@ class BaseFolder(object):
 | 
			
		||||
        MailDirFolder('foo') == MaildirFolder('foo') --> False
 | 
			
		||||
        """
 | 
			
		||||
 | 
			
		||||
        if isinstance(other, basestring):
 | 
			
		||||
        if isinstance(other, str):
 | 
			
		||||
            return other == self.name
 | 
			
		||||
        return id(self) == id(other)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user