Homekolab.org

[Python 3] urllib.urlencode / httplib module change

Authored by sicherha on Sep 30 2022, 5:04 PM.

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

Committed
sicherhaSep 30 2022, 5:05 PM
Pushed
sicherhaSep 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