Show
Ignore:
Timestamp:
10/01/09 18:06:51 (4 years ago)
Author:
ged
Message:

callable is deprecated in py3k

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/elixir/relationships.py

    r484 r488  
    866866                "all ManyToMany tables", DeprecationWarning, stacklevel=3) 
    867867        self.column_format = column_format or options.M2MCOL_NAMEFORMAT 
    868         if not callable(self.column_format): 
     868        if not hasattr(self.column_format, '__call__'): 
    869869            # we need to store the format in a variable so that the 
    870870            # closure of the lambda is correct