Skip to content

Commit

Permalink
Remove last class advice usage (breaks under Py3k with new zope.inter…
Browse files Browse the repository at this point in the history
…face.
  • Loading branch information
tseaver committed May 16, 2012
1 parent 59f288c commit c9888fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyramid/config/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

from zope.interface import (
Interface,
classProvides,
implementedBy,
implementer,
provider,
)

from zope.interface.interfaces import IInterface
Expand Down Expand Up @@ -385,8 +385,8 @@ def decorated_view(self, view):
return decorator(view)

@implementer(IViewMapper)
@provider(IViewMapperFactory)
class DefaultViewMapper(object):
classProvides(IViewMapperFactory)
def __init__(self, **kw):
self.attr = kw.get('attr')

Expand Down

0 comments on commit c9888fc

Please sign in to comment.