Skip to content

Commit

Permalink
Python2.4 compat, even though I thought we dropped python2.4 like age…
Browse files Browse the repository at this point in the history
…s ago...
  • Loading branch information
xim committed Apr 7, 2012
1 parent e6a1851 commit 3dca976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyroutes/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def create_middleware_chain(route, request):
for full_path in reversed(settings.MIDDLEWARE):
module_name, class_name = full_path.rsplit('.', 1)

module = __import__(module_name, fromlist=[class_name])
module = __import__(module_name, globals(), locals(), [class_name])
middleware = getattr(module, class_name)

chain = middleware(chain, route)
Expand Down

0 comments on commit 3dca976

Please sign in to comment.