]> git.ipfire.org Git - thirdparty/tornado.git/commit
Moved twisted/reactor.py to platform/twistedreactor.py.
authorOvidiu Predescu <ovidiu@gmail.com>
Thu, 14 Jul 2011 23:00:02 +0000 (16:00 -0700)
committerOvidiu Predescu <ovidiu@gmail.com>
Thu, 14 Jul 2011 23:00:02 +0000 (16:00 -0700)
commit5eaa84b7e335b80f02c9ac53af78de5ef9f9583d
tree748a1676c55929f5efaef67ef463f8b08e46e4e7
parent99b3a9a764011ed8bdb9f71c791aac738de6e14c
Moved twisted/reactor.py to platform/twistedreactor.py.

twistedreactor.py:
  - cleaned up logging
  - don't try to crash if stop has been called (uses _running to check it)
  - don't add reader and writers if they've already been added
  - use a NullContext when calling add_handler
  - call IOLoop.close() to properly close file descriptors
  - implement run() and instruct the reactor to not install signal handlers.

import_test.py:
  - import twistedreactor too

twistedreactor_test.py:
  - do conditional includes based on twisted
  - remove superfluous logging
  - don't use assertGreater
  - use threading instead of the thread module. Join threads at the end of test.
  - properly close the file descriptor in Reader/Writer's connectionLost().
  - make use of tornado.platform.auto's set_close_exec.
  - write only one in the pipe, and check for that.
tornado/platform/twistedreactor.py [moved from tornado/twisted/reactor.py with 84% similarity]
tornado/test/import_test.py
tornado/test/twistedreactor_test.py
tornado/twisted/__init__.py [deleted file]