Permalink
Browse files

Remove confusing alias.

  • Loading branch information...
1 parent 49e9a7e commit 7a7b89609b358b7b429484ca12e75172e5d5cdac @tseaver tseaver committed Mar 23, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 pyramid_who/whov2.py
View
@@ -18,7 +18,7 @@
from pyramid.interfaces import IAuthenticationPolicy
from pyramid.security import Authenticated
from pyramid.security import Everyone
-from repoze.who.config import make_api_factory_with_config as APIFactory
+from repoze.who.config import make_api_factory_with_config
def _null_callback(identity, request):
@@ -35,7 +35,8 @@ def __init__(self, config_file, identifier_id, callback=_null_callback):
config_file))))
conf_dir, _ = os.path.split(config_file)
global_conf = {'here': conf_dir}
- self._api_factory = APIFactory(global_conf, config_file)
+ self._api_factory = make_api_factory_with_config(global_conf,
+ config_file)
self._identifier_id = identifier_id
self._callback = callback

0 comments on commit 7a7b896

Please sign in to comment.