beanstalkt /

Diff from to


 This module contains a beanstalkd client for [Tornado]( implemented using the asynchronous (non-blocking) [IOStream]( 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 ([]()).
 ## Example client usage
     import beanstalkt
     def show(msg, value, cb):
-      print msg % value
+      print(msg % value)
     def 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`) 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.