浏览代码

Fix some docstring typos

Ask Solem 16 年之前
父节点
当前提交
b15219689f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      celery/task/base.py

+ 2 - 2
celery/task/base.py

@@ -18,7 +18,7 @@ class TaskType(type):
     Automatically registers the task in the task registry, except
     Automatically registers the task in the task registry, except
     if the ``abstract`` attribute is set.
     if the ``abstract`` attribute is set.
 
 
-    If no ``name`` attribute is provieded, the name is automatically
+    If no ``name`` attribute is provided, the name is automatically
     set to the name of the module it was defined in, and the class name.
     set to the name of the module it was defined in, and the class name.
 
 
     """
     """
@@ -27,7 +27,7 @@ class TaskType(type):
         super_new = super(TaskType, cls).__new__
         super_new = super(TaskType, cls).__new__
         task_module = attrs["__module__"]
         task_module = attrs["__module__"]
 
 
-        # Abstract class, remove the abstract attribute so the
+        # Abstract class, remove the abstract attribute so
         # any class inheriting from this won't be abstract by default.
         # any class inheriting from this won't be abstract by default.
         if attrs.pop("abstract", None):
         if attrs.pop("abstract", None):
             return super_new(cls, name, bases, attrs)
             return super_new(cls, name, bases, attrs)