From d2d8b793192d3ad6a87796a8b5fc7de4229c1c79 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sun, 21 Feb 2010 23:39:27 +0000 Subject: [PATCH] Fixed #12655 - diffsettings command now returns the diff instead of printing. Thanks, jobscry. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12463 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/commands/diffsettings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management/commands/diffsettings.py b/django/core/management/commands/diffsettings.py index 70fe8d4677a..98b53b405d2 100644 --- a/django/core/management/commands/diffsettings.py +++ b/django/core/management/commands/diffsettings.py @@ -29,4 +29,4 @@ class Command(NoArgsCommand): output.append("%s = %s ###" % (key, user_settings[key])) elif user_settings[key] != default_settings[key]: output.append("%s = %s" % (key, user_settings[key])) - print '\n'.join(output) + return '\n'.join(output)