VirtualBox

Ignore:
Timestamp:
Jun 22, 2016 6:56:54 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108236
Message:

vboxwrappers.py,Config.kmk: Shut up too-many-boolean-expressions warning because we just sometimes have to have a lot of them.

File:
1 edited

Legend:

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

    r61569 r61829  
    488488        they don't throw errors.
    489489        """
    490         if True:
     490        if True is True:
    491491            try:
    492492                iPct        = self.o.operationPercent;
     
    14501450                sHostIP = socket.gethostbyname(sHostName)
    14511451                abHostIP = socket.inet_aton(sHostIP)
    1452                 if ord(abHostIP[0]) == 127 \
    1453                     or ord(abHostIP[0]) == 169 and ord(abHostIP[1]) == 254 \
    1454                     or ord(abHostIP[0]) == 192 and ord(abHostIP[1]) == 168 and ord(abHostIP[2]) == 56:
     1452                if   ord(abHostIP[0]) == 127 \
     1453                  or (ord(abHostIP[0]) == 169 and ord(abHostIP[1]) == 254) \
     1454                  or (ord(abHostIP[0]) == 192 and ord(abHostIP[1]) == 168 and ord(abHostIP[2]) == 56):
    14551455                    reporter.log('warning: host IP for "%s" is %s, most likely not unique.' % (sHostName, sHostIP))
    14561456            except:
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