Skip to content

Commit

Permalink
Revert change to callable(), it has been brought back in Python 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Jun 26, 2016
1 parent ef33572 commit 86a5445
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/unit/managers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import os
import imp
import json
import collections

from six import string_types

Expand Down Expand Up @@ -111,7 +110,7 @@ def assertORMFilter( self, item, msg=None ):
self.assertTrue( True, msg or ( 'is an orm filter: ' + str( item ) ) )

def assertFnFilter( self, item, msg=None ):
if not item or not isinstance( item, collections.Callable):
if not item or not callable( item ):
self.fail( 'Not a fn filter: ' + str( type( item ) ) )
self.assertTrue( True, msg or ( 'is a fn filter: ' + str( item ) ) )

Expand Down

0 comments on commit 86a5445

Please sign in to comment.