Ticket #12655: return_instead_o_print.diff

File return_instead_o_print.diff, 552 bytes (added by jobscry, 6 years ago)

replacing the "print" in diffsettings command to "return"

  • django/core/management/commands/diffsettings.py

     
    2929                output.append("%s = %s  ###" % (key, user_settings[key]))
    3030            elif user_settings[key] != default_settings[key]:
    3131                output.append("%s = %s" % (key, user_settings[key]))
    32         print '\n'.join(output)
     32        return '\n'.join(output)
Back to Top