Permalink
Browse files

colorize the README file

  • Loading branch information...
1 parent 9ea4d57 commit a2a1a04efccc0eeb2757d782add71438f59eace0 @eklitzke committed Mar 31, 2015
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.md
View
@@ -29,11 +29,13 @@ Basic Usage:
The most basic possible usage:
- def success(addresses):
- print 'the address is %s' % (addresses['www.iomonad.com'],)
-
- # timeout after 5000 milliseconds
- tornado_dns.lookup("www.iomonad.com", success, timeout=5000)
+```python
+def success(addresses):
+ print 'the address is %s' % (addresses['www.iomonad.com'],)
+
+# timeout after 5000 milliseconds
+tornado_dns.lookup("www.iomonad.com", success, timeout=5000)
+```
You'll need to do the lookup in the context of a tornado IOLoop that's
running. Look at `example.py` for a very slightly more example.

0 comments on commit a2a1a04

Please sign in to comment.