PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/circuits/io/__init__.py

https://bitbucket.org/prologic/circuits/
Python | 35 lines | 18 code | 7 blank | 10 comment | 0 complexity | eefb578deb51af09e10fa4a7a0d04ea3 MD5 | raw file
 1# Module:   io
 2# Date:     4th August 2004
 3# Author:   James Mills <prologic@shortcircuit.net.au>
 4
 5"""I/O Support
 6
 7This package contains various I/O Components. Provided are a generic File
 8Component, StdIn, StdOut and StdErr components. Instances of StdIn, StdOut
 9and StdErr are also created by importing this package.
10"""
11
12import sys
13
14from .file import File
15from .process import Process
16from .events import close, open, seek, write
17
18try:
19    from .notify import Notify
20except:
21    pass
22
23try:
24    from .serial import Serial
25except:
26    pass
27
28try:
29    stdin = File(sys.stdin, channel="stdin")
30    stdout = File(sys.stdout, channel="stdout")
31    stderr = File(sys.stderr, channel="stderr")
32except:
33    pass
34
35# flake8: noqa