Source

beanstalkt / README.md

Diff from to

File README.md

 
 This module contains a beanstalkd client for [Tornado](http://www.tornadoweb.org) implemented using the asynchronous (non-blocking) [IOStream](http://www.tornadoweb.org/documentation/iostream.html) socket wrapper.
 
+The code has been tested with Python 3.3 and 2.7.
+
 The code and documentation is licensed under the Apache Licence, Version 2.0 ([http://www.apache.org/licenses/LICENSE-2.0.html]()).
 
 ## Example client usage
     import beanstalkt
 
     def show(msg, value, cb):
-      print msg % value
+      print(msg % value)
       cb()
     
     def stop():
       client.close(ioloop.stop)
     
     def put():
-      client.put("A job to work on", callback=lambda s: show(
+      client.put(b"A job to work on", callback=lambda s: show(
           "Queued a job with id %d", s, reserve))
     
     def reserve():
 Executing the script (`python demo.py`) with beanstalkd running produces the following output:
 
     Queued a job with id 1
-    Reserved job {"body": "A job to work on", "id": 1}
+    Reserved job {'body': b'A job to work on', 'id': 1}
     Deleted job with id 1
 
 Where `id` is the job id that beanstalkd has given the job when putting in on the queue.