/circuits/io/__init__.py

https://bitbucket.org/prologic/circuits/ · Python · 35 lines · 18 code · 7 blank · 10 comment · 3 complexity · eefb578deb51af09e10fa4a7a0d04ea3 MD5 · raw file

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