VirtualBox

Changeset 70560 in vbox for trunk


Ignore:
Timestamp:
Jan 12, 2018 3:05:20 PM (7 years ago)
Author:
vboxsync
Message:

testboxscript: Fix of py3 adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/testboxconnection.py

    r70548 r70560  
    3434import urllib
    3535if sys.version_info[0] >= 3:
    36     import http.client as httplib;
    37     import urllib.parse as urlparse;
     36    import http.client as httplib;      # pylint: disable=import-error,no-name-in-module
     37    import urllib.parse as urlparse;    # pylint: disable=import-error,no-name-in-module
    3838else:
    39     import httplib;
    40     import urlparse;
     39    import httplib;                     # pylint: disable=import-error
     40    import urlparse;                    # pylint: disable=import-error
    4141
    4242# Validation Kit imports.
     
    7070            # TestBoxConnection.postRequestRaw).
    7171            ##testboxcommons.log2('SERVER RESPONSE: "%s"' % (sBody,))
    72             self._dResponse = urllib_parse_qs(sBody, strict_parsing=True);
     72            self._dResponse = urlparse.parse_qs(sBody, strict_parsing=True);
    7373
    7474            # Convert the dictionary from 'field:values' to 'field:value'. Fail
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