VirtualBox

Ignore:
Timestamp:
Jun 11, 2019 3:26:40 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131252
Message:

ValKit,++: Pylint 2.3.1 adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py

    r79087 r79092  
    384384            self.abReadAheadHdr = array.array('B');
    385385        else:
    386             abHdr = self.recvBytes(16, cMsTimeout, fNoDataOk);
     386            abHdr = self.recvBytes(16, cMsTimeout, fNoDataOk); # (virtual method) # pylint: disable=assignment-from-none
    387387            if abHdr is None:
    388388                return (None, None, None);
     
    413413            else:
    414414                cbPadding = 0;
    415             abPayload = self.recvBytes(cbMsg - 16 + cbPadding, cMsTimeout, False);
     415            abPayload = self.recvBytes(cbMsg - 16 + cbPadding, cMsTimeout, False); # pylint: disable=assignment-from-none
    416416            if abPayload is None:
    417417                self.abReadAheadHdr = abHdr;
     
    644644        if cMsLeft <= cMsMin:
    645645            return cMsMin;
    646         if cMsLeft > cMsMax and cMsMax > 0:
     646        if cMsLeft > cMsMax > 0:
    647647            return cMsMax
    648648        return cMsLeft;
     
    985985                    if oXcpt[0] == errno.EWOULDBLOCK:
    986986                        return True;
    987                     if utils.getHostOs == 'win' and oXcpt[0] == errno.WSAEWOULDBLOCK: # pylint: disable=no-member
     987                    if utils.getHostOs() == 'win' and oXcpt[0] == errno.WSAEWOULDBLOCK: # pylint: disable=no-member
    988988                        return True;
    989989                except: pass;
     
    10881088            if rc is True:
    10891089                pass;
    1090             elif  iRc == errno.ECONNREFUSED \
    1091                or iRc == errno.EHOSTUNREACH \
    1092                or iRc == errno.EINTR \
    1093                or iRc == errno.ENETDOWN \
    1094                or iRc == errno.ENETUNREACH \
    1095                or iRc == errno.ETIMEDOUT:
     1090            elif iRc in (errno.ECONNREFUSED, errno.EHOSTUNREACH, errno.EINTR, errno.ENETDOWN, errno.ENETUNREACH, errno.ETIMEDOUT):
    10961091                rc = False; # try again.
    10971092            else:
Note: See TracChangeset for help on using the changeset viewer.

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