Switch callable checks to isinstance for Python 3

Bug #1035104 reported by Brian Curtin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Status tracked in Trunk
Stable-4-0
Invalid
Undecided
Unassigned
Trunk
Invalid
Undecided
Brian Curtin
ubuntu-sso-client (Ubuntu)
Invalid
Medium
Unassigned
Declined for Quantal by Michael Casadevall

Bug Description

Python 3 loses the callable builtin, instead prefering a check of isinstance(your_object, collections.Callable). This works on 2 and 3.

Tags: python3

Related branches

Matthias Klose (doko)
tags: added: python3
Revision history for this message
Thomas Kluyver (takluyver) wrote :

callable() was added back to Python 3.2, so I think this can be closed.

Changed in ubuntu-sso-client (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Matthias Klose (doko) wrote :

any update on this?

Revision history for this message
Alejandro J. Cura (alecu) wrote :

Yes, this is a non-issue for python >= 3.2

Changed in ubuntu-sso-client (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.