Fix an incorrect code example in the Hooks documentation.

This commit is contained in:
Ryan Petrello
2012-10-29 10:32:41 -04:00
parent 3caa3eb236
commit ee222b544d

View File

@@ -61,9 +61,10 @@ Hooks can also be applied selectively to controllers and their sub-controllers
using the ``__hooks__`` attribute on one or more controllers::
from pecan import expose
from pecan.hooks import HookController
from my_hooks import SimpleHook
class SimpleController(object):
class SimpleController(HookController):
__hooks__ = [SimpleHook()]