os.isatty is now forbidden (as stream.fileno() is not implemented by StringIO)
Use stream.isatty() instead.
This commit is contained in:
parent
8508f951f5
commit
5bd70c564f
5 changed files with 9 additions and 8 deletions
|
|
@ -105,7 +105,7 @@ class Pastoob(ReplApplication):
|
|||
output.write(paste.contents)
|
||||
# add a newline unless we are writing
|
||||
# in a file or in a pipe
|
||||
if os.isatty(output.fileno()):
|
||||
if output.isatty():
|
||||
output.write('\n')
|
||||
|
||||
def do_post(self, line):
|
||||
|
|
|
|||
|
|
@ -197,5 +197,5 @@ class WebContentEdit(ReplApplication):
|
|||
|
||||
# add a newline unless we are writing
|
||||
# in a file or in a pipe
|
||||
if os.isatty(output.fileno()):
|
||||
if output.isatty():
|
||||
output.write('\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue