mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Make ContainerIO.isatty() return a bool, not int
Better follows the interface of IOBase.isatty: https://docs.python.org/3/library/io.html#io.IOBase.isatty
This commit is contained in:
		
							parent
							
								
									7bf5246b93
								
							
						
					
					
						commit
						a08bfa6e9f
					
				| 
						 | 
				
			
			@ -16,7 +16,7 @@ class TestFileContainer(PillowTestCase):
 | 
			
		|||
        im = hopper()
 | 
			
		||||
        container = ContainerIO.ContainerIO(im, 0, 0)
 | 
			
		||||
 | 
			
		||||
        self.assertEqual(container.isatty(), 0)
 | 
			
		||||
        self.assertFalse(container.isatty())
 | 
			
		||||
 | 
			
		||||
    def test_seek_mode_0(self):
 | 
			
		||||
        # Arrange
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -39,7 +39,7 @@ class ContainerIO(object):
 | 
			
		|||
    # Always false.
 | 
			
		||||
 | 
			
		||||
    def isatty(self):
 | 
			
		||||
        return 0
 | 
			
		||||
        return False
 | 
			
		||||
 | 
			
		||||
    def seek(self, offset, mode=0):
 | 
			
		||||
        """
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user