Commits

Anonymous committed 68046c6

fixed code examples in README

Comments (0)

Files changed (1)

 
 Example:
 
+::
+
     >>>> import sys
     >>>> def wrapper(generator):
     ....    print 'before'
     < result >
     after
 
-
 This can be used for all kinds of asyncronous frameworks where you prefer to
 have at least some kind of syntax to indicate delegation to the asyncronous I/O
 loop.
 
 For Twisted Matrix for instance, the following code:
 
+::
+
     @defer.inlineCallbacks
     def async_function(deferred_param):
         a = yield deferred_param
 
 can now be written as:
 
+::
+
     def async_function(deferred_param):
         a = await deferred_param
         b = await some_call(a)