Skip to content

Commit

Permalink
Changed multi-line string (celery#5846)
Browse files Browse the repository at this point in the history
This string wasn't rendering properly and was printing the python statement too. Although the change isn't as pretty code-wise, it gets rid of an annoyance for the user.
  • Loading branch information
paramkpr authored and jeyrce committed Aug 25, 2021
1 parent 6c71f51 commit 970a113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celery/fixups/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,5 @@ def close_cache(self):

def on_worker_ready(self, **kwargs):
if self._settings.DEBUG:
warnings.warn('Using settings.DEBUG leads to a memory leak, never '
'use this setting in production environments!')
warnings.warn('''Using settings.DEBUG leads to a memory
leak, never use this setting in production environments!''')

0 comments on commit 970a113

Please sign in to comment.