Ask Solem 9 سال پیش
والد
کامیت
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.
                 retry at.
             max_retries (int): If set, overrides the default retry limit for
             max_retries (int): If set, overrides the default retry limit for
                 this execution.  Changes to this parameter don't propagate to
                 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
                 have to set the :attr:`max_retries` attribute of the task to
                 :const:`None` first.
                 :const:`None` first.
             time_limit (int): If set, overrides the default time limit.
             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.
     instance methods are not descriptors.
 
 
     Warning:
     Warning:
-
         It assumes that the function name and the target attribute name are
         It assumes that the function name and the target attribute name are
         the same, instead of assuming that the function is a descriptor.
         the same, instead of assuming that the function is a descriptor.
         This approach is equally fast, but not 100% reliable because
         This approach is equally fast, but not 100% reliable because
@@ -222,7 +221,7 @@ class BoundNonDescriptorMethodWeakref(BoundMethodWeakref):  # pragma: no cover
             ...     return 'foo'
             ...     return 'foo'
             >>> A.bar = 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
         aren't descriptors (such as Jython) this implementation has the
         advantage of working in the most cases.
         advantage of working in the most cases.
     """
     """