Skip to content

Commit

Permalink
Fix grammar, PEP8 (#4188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Mota authored and thedrow committed Aug 10, 2017
1 parent bd347f7 commit 19c66d6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celery/app/task.py
Expand Up @@ -132,7 +132,7 @@ def as_execution_options(self):

@property
def children(self):
# children must be an empy list for every thread
# children must be an empty list for every thread
if self._children is None:
self._children = []
return self._children
Expand Down Expand Up @@ -383,7 +383,7 @@ def __call__(self, *args, **kwargs):
_task_stack.pop()

def __reduce__(self):
# - tasks are pickled into the name of the task only, and the reciever
# - tasks are pickled into the name of the task only, and the receiver
# - simply grabs it from the local registry.
# - in later versions the module of the task is also included,
# - and the receiving side tries to import that module so that
Expand Down
1 change: 1 addition & 0 deletions examples/app/myapp.py
Expand Up @@ -37,5 +37,6 @@
def add(x, y):
return x + y


if __name__ == '__main__':
app.start()
2 changes: 2 additions & 0 deletions examples/periodic-tasks/myapp.py
Expand Up @@ -41,6 +41,7 @@

app.conf.timezone = 'UTC'


@app.task
def say(what):
print(what)
Expand All @@ -54,5 +55,6 @@ def setup_periodic_tasks(sender, **kwargs):
# See periodic tasks user guide for more examples:
# http://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html


if __name__ == '__main__':
app.start()
1 change: 1 addition & 0 deletions examples/tutorial/tasks.py
Expand Up @@ -8,5 +8,6 @@
def add(x, y):
return x + y


if __name__ == '__main__':
app.start()

0 comments on commit 19c66d6

Please sign in to comment.