Skip to content

Commit

Permalink
fixed compatibility issues in util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
claesenm committed Jul 10, 2015
1 parent 7a5478c commit dac528f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optunity/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_default_args(func):
returns a dictionary of arg_name:default_values for the input function
"""
if not callable(func):
raise TypeError, "%s is not callable" % type(func)
raise TypeError("%s is not callable" % type(func))
if inspect.isfunction(func):
print('a')
spec = inspect.getargspec(func)
Expand Down

0 comments on commit dac528f

Please sign in to comment.