Merge pull request #3568 from jdufresne/isatty-bool

Make ContainerIO.isatty() return a bool, not int
This commit is contained in:
Hugo 2019-02-27 23:28:51 +02:00 committed by GitHub
commit 2e374cf1ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -39,7 +39,7 @@ class ContainerIO(object):
# Always false.
def isatty(self):
return 0
return False
def seek(self, offset, mode=0):
"""