Browse Source

We only need to encode the keys.

rlotun 15 years ago
parent
commit
bbfd4c293c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/worker/control.py

+ 1 - 1
celery/worker/control.py

@@ -122,5 +122,5 @@ class ControlDispatch(object):
         else:
             # need to make sure keyword arguments are not in unicode
             # this should be fixed in newer Python's (see: http://bugs.python.org/issue4978)
-            kwargs = dict((k.encode('utf8'), v.encode('utf8')) for (k, v) in kwargs.iteritems())
+            kwargs = dict((k.encode('utf8'), v) for (k, v) in kwargs.iteritems())
             return control(**kwargs)