Adapt imports to urllib and urllib2 to rely on Python 3 module
organization by installing them as aliases. This was produced by running
futurize's stage2 libfuturize.fixes.fix_future_standard_library_urllib
and adapted manually to remove excess import and fix up str to byte
conversion of urlencode result.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 41909 Build 42240: arc lint + arc unit
Event Timeline
lnt/util/ServerUtil.py | ||
---|---|---|
45 | I think .encode(encoding='ascii') makes it more clear that the Python 2 and Python 3 behavior of this is not going to diverge. |
I think .encode(encoding='ascii') makes it more clear that the Python 2 and Python 3 behavior of this is not going to diverge.