VirtualBox

Changeset 82639 in vbox


Ignore:
Timestamp:
Dec 22, 2019 6:55:07 PM (5 years ago)
Author:
vboxsync
Message:

TestManager/wuicontentbase.py: Updating short link symbols and some python 3 adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuicontentbase.py

    r79092 r82639  
    274274    ksShortEditLinkHtml    = '✍'
    275275    ## The text/symbol for a very short details link.
    276     ksShortDetailsLink     = u'\u2318'
     276    ksShortDetailsLink     = u'\U0001f6c8'
    277277    ## HTML hex entity string for ksShortDetailsLink.
    278     ksShortDetailsLinkHtml = '⌘'
     278    ksShortDetailsLinkHtml =    '🛈'
    279279    ## The text/symbol for a very short change log / details / previous page link.
    280280    ksShortChangeLogLink   = u'\u2397'
     
    282282    ksShortChangeLogLinkHtml = '⎗'
    283283    ## The text/symbol for a very short reports link.
    284     ksShortReportLink      = u'\u2397'
     284    ksShortReportLink      = u'\U0001f4ca'
    285285    ## HTML hex entity string for ksShortReportLink.
    286     ksShortReportLinkHtml  = '⎗'
     286    ksShortReportLinkHtml  =    '📊'
     287    ## The text/symbol for a very short test results link.
     288    ksShortTestResultsLink = u'\U0001f5d0'
    287289
    288290
     
    320322
    321323        # Figure the hour, min and sec counts.
    322         cHours   = oInterval.seconds / 3600;
    323         cMinutes = (oInterval.seconds % 3600) / 60;
     324        cHours   = oInterval.seconds // 3600;
     325        cMinutes = (oInterval.seconds % 3600) // 60;
    324326        cSeconds = oInterval.seconds - cHours * 3600 - cMinutes * 60;
    325327
     
    332334            return '%d:%02d:%02d' % (cHours, cMinutes, cSeconds);
    333335        if cSeconds >= 10:
    334             return '%d.%ds'   % (cSeconds, oInterval.microseconds / 100000);
     336            return '%d.%ds'   % (cSeconds, oInterval.microseconds // 100000);
    335337        if cSeconds > 0:
    336             return '%d.%02ds' % (cSeconds, oInterval.microseconds / 10000);
    337         return '%d ms' % (oInterval.microseconds / 1000,);
     338            return '%d.%02ds' % (cSeconds, oInterval.microseconds // 10000);
     339        return '%d ms' % (oInterval.microseconds // 1000,);
    338340
    339341    @staticmethod
     
    349351
    350352        # Calc display range.
    351         iStart = 0 if iCurItem - cWidth / 2 <= cWidth / 4 else iCurItem - cWidth / 2;
     353        iStart = 0 if iCurItem - cWidth // 2 <= cWidth // 4 else iCurItem - cWidth // 2;
    352354        iEnd   = iStart + cWidth;
    353355        if iEnd > cItems:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette