]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Added author and copyright info.
authorOvidiu Predescu <ovidiu@gmail.com>
Tue, 12 Jul 2011 19:04:26 +0000 (12:04 -0700)
committerOvidiu Predescu <ovidiu@gmail.com>
Tue, 12 Jul 2011 19:04:26 +0000 (12:04 -0700)
tornado/test/twistedreactor_test.py
tornado/twisted/reactor.py

index 410e76fb9e62b22161f2687fdb559df9cd7eb17a..e82af3a2a59744c1beb7b3bf70c339c49d312bf8 100644 (file)
@@ -1,3 +1,22 @@
+# Author: Ovidiu Predescu
+# Date: July 2011
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+"""
+Unittest for the twisted-style reactor.
+"""
+
 import fcntl
 import os
 import sys
index e5f7444a0a7c06a047243d7d13fc61c1f1fb0865..0b6d02f6d4267d04ce45b71b4e35b06b02f9eef0 100644 (file)
@@ -1,4 +1,28 @@
-# System imports
+# Author: Ovidiu Predescu
+# Date: July 2011
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+"""
+A twisted-style reactor for the Tornado IOLoop.
+
+To use it, add the following to your twisted application:
+
+import tornado.twisted.reactor
+tornado.twisted.reactor.install()
+from twisted.internet import reactor
+"""
+
 import errno, functools, sys
 import time
 
@@ -14,6 +38,9 @@ import tornado.ioloop
 from tornado.ioloop import IOLoop
 
 class TornadoDelayedCall(object):
+    """
+    DelayedCall object for Tornado.
+    """
     implements(IDelayedCall)
 
     def __init__(self, reactor, seconds, f, *args, **kw):