VirtualBox

Ignore:
Timestamp:
May 17, 2018 10:55:16 AM (7 years ago)
Author:
vboxsync
Message:

vkit/tests: pylint

Location:
trunk/src/VBox/ValidationKit/tests/serial
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/serial/loopback.py

    r71988 r72231  
    120120    def __init__(self, sLocation, iTimeout):
    121121        self.oConn = None;
    122         self.oSock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM);
     122        self.oSock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM); # pylint: disable=no-member
    123123        self.oSock.settimeout(iTimeout);
    124124        self.oSock.bind(sLocation);
     
    160160    """
    161161    def __init__(self, sLocation, iTimeout):
    162         self.oConn = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM);
     162        self.oConn = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM); # pylint: disable=no-member
    163163        self.oConn.connect(sLocation);
    164164        self.oConn.settimeout(iTimeout);
  • trunk/src/VBox/ValidationKit/tests/serial/tdSerial1.py

    r72029 r72231  
    5151
    5252import loopback;
     53
     54# Python 3 hacks:
     55if sys.version_info[0] >= 3:
     56    xrange = range; # pylint: disable=redefined-builtin,invalid-name
     57
    5358
    5459class tdSerial1(vbox.TestDriver):
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