Changeset 4c24f40 in rtems-tools


Ignore:
Timestamp:
May 24, 2017, 2:27:22 AM (15 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
37a0843
Parents:
52cfa18
Message:

rtemstoolkit: Improve performance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/log.py

    r52cfa18 r4c24f40  
    7373        text = os.linesep
    7474    if type(text) is list:
    75         _text = ''
    76         for l in text:
    77             _text += l + os.linesep
    78         text = _text
     75        text = os.linesep.join(text) + os.linesep
    7976    if log:
    8077        log.output(text)
     
    169166        text = text.replace(chr(13), '').splitlines()
    170167        self._tail(text)
    171         out = ''
    172         for l in text:
    173             out += l + os.linesep
     168        out = os.linesep.join(text) + os.linesep
    174169        self.lock.acquire()
    175170        try:
Note: See TracChangeset for help on using the changeset viewer.