Ask Solem 8 年 前
コミット
37684ace3a
2 ファイル変更3 行追加4 行削除
  1. 2 2
      celery/app/task.py
  2. 1 2
      celery/utils/dispatch/saferef.py

+ 2 - 2
celery/app/task.py

@@ -579,8 +579,8 @@ class Task(object):
                 retry at.
             max_retries (int): If set, overrides the default retry limit for
                 this execution.  Changes to this parameter don't propagate to
-                subsequent task retry attempts.  A value of :const:`None`, means
-                "use the default", so if you want infinite retries you'd
+                subsequent task retry attempts.  A value of :const:`None`,
+                means "use the default", so if you want infinite retries you'd
                 have to set the :attr:`max_retries` attribute of the task to
                 :const:`None` first.
             time_limit (int): If set, overrides the default time limit.

+ 1 - 2
celery/utils/dispatch/saferef.py

@@ -208,7 +208,6 @@ class BoundNonDescriptorMethodWeakref(BoundMethodWeakref):  # pragma: no cover
     instance methods are not descriptors.
 
     Warning:
-
         It assumes that the function name and the target attribute name are
         the same, instead of assuming that the function is a descriptor.
         This approach is equally fast, but not 100% reliable because
@@ -222,7 +221,7 @@ class BoundNonDescriptorMethodWeakref(BoundMethodWeakref):  # pragma: no cover
             ...     return 'foo'
             >>> A.bar = foo
 
-        But this shouldn't be a common use case.  So, on platforms where methods
+        This shouldn't be a common use case.  So, on platforms where methods
         aren't descriptors (such as Jython) this implementation has the
         advantage of working in the most cases.
     """