Permalink
Browse files

use isfunction instead of ismethod (will break python 2)

  • Loading branch information...
1 parent 491b8a5 commit e6be0067b562986641f9c9d6b642cdecdec59038 @misaelnieto misaelnieto committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyramid_handlers/__init__.py
@@ -93,7 +93,7 @@ def scan_handler(config, handler, route_name, action_decorator,
autoexpose = re.compile(autoexpose).match
except (re.error, TypeError) as why:
raise ConfigurationError(why.args[0])
- for method_name, method in inspect.getmembers(handler, inspect.ismethod):
+ for method_name, method in inspect.getmembers(handler, inspect.isfunction):
configs = getattr(method, '__exposed__', [])
if autoexpose and not configs:
if autoexpose(method_name):

0 comments on commit e6be006

Please sign in to comment.