Changes between Version 1 and Version 2 of Ticket #24068


Ignore:
Timestamp:
Jan 1, 2015, 7:55:56 AM (9 years ago)
Author:
Markus Holtermann
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24068 – Description

    v1 v2  
    1616{{{#!diff
    1717diff --git a/django/core/management/base.py b/django/core/management/base.py
    18 index 869a11b..dc22d74 100644
     18index 869a11b..318740f 100644
    1919--- a/django/core/management/base.py
    2020+++ b/django/core/management/base.py
    21 @@ -107,11 +107,13 @@ class OutputWrapper(object):
     21@@ -107,11 +107,12 @@ class OutputWrapper(object):
    2222         return getattr(self._out, name)
    2323
     
    2929-        self._out.write(force_str(style_func(msg)))
    3030+        ending = self.ending if ending is None else ending
    31 +        if ending:
    32 +            if msg.endswith(ending):
    33 +                msg = msg[:-len(ending)]
     31+        if ending and msg.endswith(ending):
     32+            msg = msg[:-len(ending)]
    3433+        msg = force_str(style_func(msg)) + ending
    3534+        self._out.write(msg)
    36 
    37 
    38  class BaseCommand(object):
    3935}}}
Back to Top