소스 검색

We only need to encode the keys.

rlotun 15 년 전
부모
커밋
bbfd4c293c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)