Merge lp:~brian.curtin/ubuntu-sso-client/py3-callable into lp:ubuntu-sso-client
Proposed by
Brian Curtin
Status: | Rejected |
---|---|
Rejected by: | Brian Curtin |
Proposed branch: | lp:~brian.curtin/ubuntu-sso-client/py3-callable |
Merge into: | lp:ubuntu-sso-client |
Diff against target: |
22 lines (+4/-1) 1 file modified
ubuntu_sso/qt/tests/__init__.py (+4/-1) |
To merge this branch: | bzr merge lp:~brian.curtin/ubuntu-sso-client/py3-callable |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alejandro J. Cura (community) | Disapprove | ||
Review via email: mp+119054@code.launchpad.net |
Commit message
- Switch to Python 3's version of checking if an instance is callable.
Description of the change
Python 3 loses the callable builtin. Switch to checking an object's callability by passing it to isinstance and checking collections.
To post a comment you must log in.
Unmerged revisions
- 990. By Brian Curtin
-
Move to a Python 3 friendly way to check if an object is callable
Do we really need this change? docs.python. org/py3k/ library/ functions. html#callable
Since we are supporting Python 3.2 and upwards, we may not need it, since """This function was first removed in Python 3.0 and then brought back in Python 3.2.""": http://