VirtualBox

Ignore:
Timestamp:
Nov 25, 2020 2:45:30 PM (4 years ago)
Author:
vboxsync
Message:

ValKit: Shut up python3 compilation errors. bugref:9788

Location:
trunk/src/VBox/ValidationKit/analysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/analysis/reporting.py

    r82968 r86975  
    218218    Produce an HTML report on stdout (via print).
    219219    """
    220     print 'not implemented: %s' % (oTest);
     220    print('not implemented: %s' % (oTest));
    221221    return False;
    222222
     
    225225    Produce a ReStructured text report on stdout (via print).
    226226    """
    227     print 'not implemented: %s' % (oTest);
     227    print('not implemented: %s' % (oTest));
    228228    return False;
    229229
     
    276276                if i > 0: sLine += '  ';
    277277                sLine += asLine[i].center(acchColumns[i]);
    278             print sLine;
     278            print(sLine);
    279279
    280280        # Units.
     
    283283            if i > 0: sLine += '  ';
    284284            sLine += oTable.asUnits[i].center(acchColumns[i]);
    285         print sLine;
     285        print(sLine);
    286286
    287287        # Separator line.
     
    290290            if i > 0: sLine += '  '
    291291            sLine += '=' * acchColumns[i];
    292         print sLine;
     292        print(sLine);
    293293
    294294        # The rows.
     
    297297            for i in range(1, len(asColumns)):
    298298                sText += '  ' + asColumns[i].rjust(acchColumns[i]);
    299             print sText;
     299            print(sText);
    300300
    301301    return None;
  • trunk/src/VBox/ValidationKit/analysis/tst-a1.py

    r82968 r86975  
    4848def usage():
    4949    """ Display usage """
    50     print 'usage: %s [options] <testresults.xml> [baseline.xml]' % (sys.argv[0]);
    51     print ''
    52     print 'options:'
    53     print '  --filter <test-sub-string>'
     50    print('usage: %s [options] <testresults.xml> [baseline.xml]' % (sys.argv[0]));
     51    print('')
     52    print('options:')
     53    print('  --filter <test-sub-string>')
    5454    return 1;
    5555
     
    6868            return usage();
    6969        elif asArgs[iArg].startswith('--'):
    70             print 'syntax error: unknown option "%s"' % (asArgs[iArg]);
     70            print('syntax error: unknown option "%s"' % (asArgs[iArg]));
    7171            return usage();
    7272        elif sTestFile is None:
     
    7575            sBaseFile = asArgs[iArg];
    7676        else:
    77             print 'syntax error: too many file names: %s' % (asArgs[iArg])
     77            print('syntax error: too many file names: %s' % (asArgs[iArg]))
    7878            return usage();
    7979        iArg += 1;
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