Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 4.3.0
-
None
-
ghx-label-1
Description
Several libraries moved in Python 3. For example, urllib2, httplib, Queue, and several others. See:
https://python-future.org/compatible_idioms.html#urllib-module
https://python-future.org/compatible_idioms.html#http-module
This is also a good time to fix several warnings about object model differences. _nonzero_ is now _bool, metaclasses are specified differently, iterator next() method is deprecated, objects that implement __eq_ should also implement _hash_, etc.
The pylint checks that could be fixed by this would be:
bad-python3-import
eq-without-hash
metaclass-assignment
next-method-called
nonzero-method
comprehension-escape
exception-escape