Skip to content

Commit 19c66d6

Browse files
Nicolas MotaOmer Katz
authored andcommitted
Fix grammar, PEP8 (celery#4188)
1 parent bd347f7 commit 19c66d6

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

celery/app/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def as_execution_options(self):
132132

133133
@property
134134
def children(self):
135-
# children must be an empy list for every thread
135+
# children must be an empty list for every thread
136136
if self._children is None:
137137
self._children = []
138138
return self._children
@@ -383,7 +383,7 @@ def __call__(self, *args, **kwargs):
383383
_task_stack.pop()
384384

385385
def __reduce__(self):
386-
# - tasks are pickled into the name of the task only, and the reciever
386+
# - tasks are pickled into the name of the task only, and the receiver
387387
# - simply grabs it from the local registry.
388388
# - in later versions the module of the task is also included,
389389
# - and the receiving side tries to import that module so that

examples/app/myapp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@
3737
def add(x, y):
3838
return x + y
3939

40+
4041
if __name__ == '__main__':
4142
app.start()

examples/periodic-tasks/myapp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
app.conf.timezone = 'UTC'
4343

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

58+
5759
if __name__ == '__main__':
5860
app.start()

examples/tutorial/tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
def add(x, y):
99
return x + y
1010

11+
1112
if __name__ == '__main__':
1213
app.start()

0 commit comments

Comments
 (0)