mcroydon / queues

Automatically exported from code.google.com/p/queues
MIT License
0 stars 0 forks source link

Beanstalkc requires jobs to be str (not unicode) #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to put a unicode message with beanstalkc backend

What version of the product are you using? On what operating system?
Latest versions of each, as at September 2011.

Please provide any additional information below.

See https://github.com/earl/beanstalkc/blob/master/beanstalkc.py#L124 - I think 
queues needs to convert messages to str before put. I have changed line 46 of 
queues/backends/beanstalkd.py from

                return self._connection.put(message)

to

                return self._connection.put(str(message))

Original issue reported on code.google.com by gregplay...@gmail.com on 13 Sep 2011 at 3:51