Remove the `tty` logic left from 0d6ff2e.
Merge pull request #6139 from s0undt3ch/hotfix/pylint-unexpected-tty-argument

For @thatch45 to review. Remove the `tty` logic left from 0d6ff2e.