mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 13:57:59 +01:00
bug fix to allow pipes in fd3
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
98eabcf875
commit
66c17159a9
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ fd3 = None
|
|||
'''
|
||||
def printinfo(text = '', end = '\n'):
|
||||
global fd3
|
||||
if os.path.exists('/proc/self/fd/3') and os.path.isfile('/proc/self/fd/3'):
|
||||
if os.path.exists('/proc/self/fd/3') and not os.path.isdir(os.path.realpath('/proc/self/fd/3')):
|
||||
if fd3 is None:
|
||||
fd3 = os.fdopen(3, 'w')
|
||||
if fd3 is not None:
|
||||
|
|
Loading…
Reference in a new issue