[Checkins] SVN: zc.ngi/trunk/src/zc/ngi/async.txt Cleaned up trailing whitespace.
Jim Fulton
jim at zope.com
Tue Apr 14 09:17:11 EDT 2009
Log message for revision 99164:
Cleaned up trailing whitespace.
Changed:
U zc.ngi/trunk/src/zc/ngi/async.txt
-=-
Modified: zc.ngi/trunk/src/zc/ngi/async.txt
===================================================================
--- zc.ngi/trunk/src/zc/ngi/async.txt 2009-04-14 12:20:56 UTC (rev 99163)
+++ zc.ngi/trunk/src/zc/ngi/async.txt 2009-04-14 13:17:11 UTC (rev 99164)
@@ -46,7 +46,7 @@
>>> _ = [thread.start() for thread in threads]
>>> _ = [thread.join() for thread in threads]
-
+
Iterable input
==============
@@ -60,7 +60,7 @@
... yield "hello\n"
... yield name
... yield "\0"
-
+
>>> output.writelines(hello('world'), timeout=1.0)
>>> input.readline(timeout=1.0)
'1 2 11\n'
@@ -105,7 +105,7 @@
Traceback (most recent call last):
...
IOError: I/O operation on closed file
-
+
Handler errors cause connections to be closed. To see this, we'll
send the server an error message, which foreces an error:
@@ -129,7 +129,7 @@
... def handle_close(self, conection, reason):
... self.closed = reason
... event.set()
-
+
>>> handler = LameClientConnectionHandler()
>>> _ = zc.ngi.async.connector(addr, handler)
>>> event.wait(1)
@@ -149,7 +149,7 @@
... connection.write('foo\0')
...
... def handle_input(self, data):
- ... raise ValueError()
+ ... raise ValueError()
...
... def handle_close(self, conection, reason):
... self.closed = reason
More information about the Checkins
mailing list