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, Nov 16, 5:00 PM
Unknown Object (File)
Thu, Nov 16, 8:22 AM
Unknown Object (File)
Tue, Nov 7, 3:42 PM
Unknown Object (File)
Tue, Nov 7, 6:48 AM
Unknown Object (File)
Tue, Nov 7, 4:16 AM
Unknown Object (File)
Nov 2 2023, 1:58 PM
Unknown Object (File)
Oct 22 2023, 7:08 PM
Unknown Object (File)
Oct 17 2023, 7:16 AM
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.