Closed shivareddyiirs closed 6 years ago
How is:
if self.file:
if self.file.isatty():
different than if self.file and self.file.isatty():
?
update to handle isatty not in self.file
Can you explain what you are trying to do? The case where self.file
is None should already be covered by commit a83f91f4b82c5ad65a0de9d3fb24fef8afaa1dea. What is this pull request trying to solve?
@verigak it checks if 'isatty' is defined in the object refere issue: #46
This is handled better now, as mentioned in #50.
here when self.file is none , none type object would not have isatty(). Hence modified code so that program don't check isatty when it is none.