/circuits/io/__init__.py
https://bitbucket.org/prologic/circuits/ · Python · 35 lines · 18 code · 7 blank · 10 comment · 3 complexity · eefb578deb51af09e10fa4a7a0d04ea3 MD5 · raw file
- # Module: io
- # Date: 4th August 2004
- # Author: James Mills <prologic@shortcircuit.net.au>
- """I/O Support
- This package contains various I/O Components. Provided are a generic File
- Component, StdIn, StdOut and StdErr components. Instances of StdIn, StdOut
- and StdErr are also created by importing this package.
- """
- import sys
- from .file import File
- from .process import Process
- from .events import close, open, seek, write
- try:
- from .notify import Notify
- except:
- pass
- try:
- from .serial import Serial
- except:
- pass
- try:
- stdin = File(sys.stdin, channel="stdin")
- stdout = File(sys.stdout, channel="stdout")
- stderr = File(sys.stderr, channel="stderr")
- except:
- pass
- # flake8: noqa