소스 검색

Stupid typos.

Ask Solem 16 년 전
부모
커밋
eb58eabc3f
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      celery/tests/test_worker_job.py
  2. 1 1
      celery/utils.py

+ 0 - 1
celery/tests/test_worker_job.py

@@ -10,7 +10,6 @@ from celery.utils import gen_unique_id
 from carrot.backends.base import BaseMessage
 import simplejson
 
-uuid4 = gen_unique_id
 
 def mytask(i, **kwargs):
     return i ** i

+ 1 - 1
celery/utils.py

@@ -31,7 +31,7 @@ def chunks(it, n):
     yield acc
 
 
-def gen_unique_id(self):
+def gen_unique_id():
     """Generate a unique id, having - hopefully - a very small chance of
     collission.