Changeset 89a94d0 in rtems-source-builder


Ignore:
Timestamp:
Mar 17, 2016, 7:26:37 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.9, master
Children:
db8ec8c
Parents:
38ed59a
git-author:
Chris Johns <chrisj@…> (03/17/16 07:26:37)
git-committer:
Chris Johns <chrisj@…> (03/17/16 07:30:13)
Message:

sb: Fix the sensible url printer on Python3.

Updates #2656.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/download.py

    r38ed59a r89a94d0  
    7171
    7272def _sensible_url(url, used = 0):
    73     space = 150 - used - 15
     73    if used < 140:
     74        space = 150 - used - 15
     75    else:
     76        space = 20
    7477    if len(url) > space:
    75         size = (space - 5) / 2
     78        size = int((space - 5) / 2)
    7679        url = url[:size] + ' ... ' + url[-size:]
    7780    return url
Note: See TracChangeset for help on using the changeset viewer.