HomePhorge

[Python 3] urllib.urlencode / httplib module change

Description

[Python 3] urllib.urlencode / httplib module change

Summary:

try:
    import httplib
except ImportError:
    import http.client as httplib
try:
    from urlparse import urlparse
except ImportError:
    from urllib.parse import urlparse
try:
    from urllib import urlencode
except ImportError:
    from urllib.parse import urlencode

Reviewers: PyKolab Developers, sicherha

Reviewed By: PyKolab Developers, sicherha

Subscribers: sicherha

Differential Revision: https://git.kolab.org/D3878

Details

Provenance
sicherhaAuthored on Sep 30 2022, 5:04 PM
sicherhaPushed on Sep 30 2022, 5:05 PM
Reviewer
PyKolab Developers
Differential Revision
D3878: [Python 3] urllib.urlencode / httplib module change
Parents
rP421b59fc4182: indent not 4/ PEP8
Branches
Unknown
Tags
Unknown
Build Status
Buildable 40223