Skip to content

Commit

Permalink
Fixed incorrect coding style (textwidth) in ./app
Browse files Browse the repository at this point in the history
Fixed issue celery#6739.

This commit is trivial. It is to fix incorrect coding style
(text width) that is applied into the ./app/ folder.
* https://github.com/celery/celery/blob/master/CONTRIBUTING.rst#id79
  * soft limit: 78
  * hard limit: 79

Signed-off-by: Geunsik Lim <[email protected]>
Signed-off-by: Geunsik Lim <[email protected]>
  • Loading branch information
leemgs authored and auvipy committed Apr 24, 2021
1 parent 25f6c13 commit 5a908b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion celery/app/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ def __init__(self, main=None, loader=None, backend=None,
self.__autoset('result_backend', backend)
self.__autoset('include', include)
self.__autoset('broker_use_ssl', kwargs.get('broker_use_ssl'))
self.__autoset('redis_backend_use_ssl', kwargs.get('redis_backend_use_ssl'))
self.__autoset('redis_backend_use_ssl',
kwargs.get('redis_backend_use_ssl'))
self._conf = Settings(
PendingConfiguration(
self._preconf, self._finalize_pending_conf),
Expand Down
3 changes: 2 additions & 1 deletion celery/app/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,8 @@ def update_state(self, task_id=None, state=None, meta=None, **kwargs):
"""
if task_id is None:
task_id = self.request.id
self.backend.store_result(task_id, meta, state, request=self.request, **kwargs)
self.backend.store_result(
task_id, meta, state, request=self.request, **kwargs)

def on_success(self, retval, task_id, args, kwargs):
"""Success handler.
Expand Down
3 changes: 2 additions & 1 deletion celery/app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ def find_app(app, symbol_by_name=symbol_by_name, imp=import_from_cwd):
try:
found = sym.celery
if isinstance(found, ModuleType):
raise AttributeError("attribute 'celery' is the celery module not the instance of celery")
raise AttributeError(
"attribute 'celery' is the celery module not the instance of celery")
except AttributeError:
if getattr(sym, '__path__', None):
try:
Expand Down

0 comments on commit 5a908b2

Please sign in to comment.