Page MenuHomePhorge

[Python 3] urllib.urlencode / httplib module change
ClosedPublic

Authored by ghane on Sep 30 2022, 2:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 5, 4:28 PM
Unknown Object (File)
Thu, Aug 22, 1:19 PM
Unknown Object (File)
Wed, Aug 21, 3:52 PM
Unknown Object (File)
Tue, Aug 20, 10:04 PM
Unknown Object (File)
Mon, Aug 19, 2:16 AM
Unknown Object (File)
Aug 12 2024, 4:46 AM
Unknown Object (File)
Aug 12 2024, 12:56 AM
Unknown Object (File)
Aug 6 2024, 9:55 PM
Subscribers

Details

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

Diff Detail

Repository
rP pykolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ghane requested review of this revision.Sep 30 2022, 2:08 PM
ghane created this revision.
sicherha subscribed.

This is missing the import stuff, isn't it?

This revision now requires changes to proceed.Sep 30 2022, 2:17 PM
ghane retitled this revision from urllib.urlencode wrong variable to [Python 3] urllib.urlencode / httplib module change.
ghane edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Sep 30 2022, 3:11 PM

The patch doesn't apply cleanly because the following hunk is already present on master:

try:
    import httplib
except ImportError:
    import http.client as httplib

Could you rebase the commit onto master?

This revision now requires changes to proceed.Sep 30 2022, 3:13 PM
This revision is now accepted and ready to land.Sep 30 2022, 5:04 PM
This revision was automatically updated to reflect the committed changes.