Joe McDonnell created IMPALA-11977:
--------------------------------------

             Summary: Fix broken imports on Python 3 and Python 3 object model 
differences
                 Key: IMPALA-11977
                 URL: https://issues.apache.org/jira/browse/IMPALA-11977
             Project: IMPALA
          Issue Type: Sub-task
          Components: Infrastructure
    Affects Versions: Impala 4.3.0
            Reporter: Joe McDonnell


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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to