Skip to content

Commit

Permalink
process: fix std* has no attribute fileno
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Dec 10, 2015
1 parent 897bf74 commit 56c70b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uv/handles/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ def __repr__(self): return '<FileDescriptor: {}>'.format(self)
"""
Create a readable and writable inter process communication pipe.
"""
STDIN = _FD(sys.stdin.fileno())
STDIN = _FD(sys.stdin.fileno()) if hasattr(sys.stdin, 'fileno') else None
"""
Standard input file descriptor.
"""
STDOUT = _FD(sys.stdout.fileno())
STDOUT = _FD(sys.stdout.fileno()) if hasattr(sys.stdout, 'fileno') else None
"""
Standard output file descriptor.
"""
STDERR = _FD(sys.stderr.fileno())
STDERR = _FD(sys.stderr.fileno()) if hasattr(sys.stderr, 'fileno') else None
"""
Standard error file descriptor.
"""
Expand Down

0 comments on commit 56c70b1

Please sign in to comment.