VirtualBox

Ignore:
Timestamp:
Jan 10, 2018 11:21:09 AM (7 years ago)
Author:
vboxsync
Message:

testdriver: python 3 updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/base.py

    r69571 r70508  
    10801080            self.aoTasks[0].waitForTask(cMsTimeout);
    10811081            return True;
    1082         except Exception, oXcpt:
     1082        except Exception as oXcpt:
    10831083            reporter.log("waitForTasksSleepWorker: %s" % (str(oXcpt),));
    10841084            return False;
     
    14441444                    oFile = utils.openNoInherit(sFull, "rb");
    14451445                    oFile.close();
    1446                 except Exception, oXcpt:
     1446                except Exception as oXcpt:
    14471447                    reporter.error('The file resource "%s" cannot be accessed: %s' % (sFull, oXcpt));
    14481448                    return False;
     
    16141614                        raise InvalidOption('unknown option: %s' % (asArgs[iArg]))
    16151615                iArg = iNext;
    1616         except QuietInvalidOption, oXcpt:
     1616        except QuietInvalidOption as oXcpt:
    16171617            return rtexitcode.RTEXITCODE_SYNTAX;
    1618         except InvalidOption, oXcpt:
     1618        except InvalidOption as oXcpt:
    16191619            reporter.error(oXcpt.str());
    16201620            return rtexitcode.RTEXITCODE_SYNTAX;
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