VirtualBox

Ignore:
Timestamp:
Mar 8, 2022 2:57:25 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150378
Message:

testmanager: pylint 2.9.6 adjustments (mostly about using sub-optimal looping and 'with' statements).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/cgi/logout2.py

    r93115 r94129  
    5252    oSrvGlue.setHeaderField('Status', '401 Unauthorized to access the document');
    5353    oSrvGlue.setHeaderField('WWW-authenticate', 'Basic realm="Test Manager"');
    54     if  (sUserAgent.startswith('Mozilla/') and sUserAgent.find('AppleWebKit/') > 0) \
    55      or False:
     54    if sUserAgent.startswith('Mozilla/') and sUserAgent.find('AppleWebKit/') > 0:
    5655        oSrvGlue.write('<p>Attempting to log out an Apple browser...</p>');
    5756    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