Commits

Jacob Söndergaard committed 9fd6150

fix mismatched number of argument errors in re-connecting functions

Comments (0)

Files changed (2)

beanstalktc/beanstalktc.py

 limitations under the License.
 '''
 
-__version__ = '0.2.1'
+__version__ = '0.2.2'
 
 import socket
 import time
         self._using = 'default'  # current tube
         self._watching = set()   # set of watched tubes
 
-    def _reconnect(self, callback):
+    def _reconnect(self):
         # wait some time before trying to re-connect
         self.io_loop.add_timeout(time.time() + RECONNECT_TIMEOUT,
                 lambda: self.connect(self._reconnected))
         # re-establish the used tube and tubes being watched
         watch_list = list(self._watching)
 
-        def do_next(arg):
+        def do_next(_=None):
             try:
                 if watch_list:
                     self.watch(watch_list.pop(), do_next)
 from setuptools import setup
 
 setup(name='beanstalktc',
-      version='0.2.1',
+      version='0.2.2',
       description='An async beanstalkd client for Tornado',
       author='Jacob Sondergaard',
       author_email='jacob@nephics.com',