Permalink
Browse files

Py3k compatibility.

The 'implements' class advisor cannot work under Python 3.x.  Use the
'@implementer' decorator instead.
  • Loading branch information...
1 parent 97b2c8a commit 4bd3cf0dfeceef116c2e3d2b3aff9bc8ca2886f2 @tseaver tseaver committed Mar 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pyramid_beaker/__init__.py
View
4 pyramid_beaker/__init__.py
@@ -7,16 +7,16 @@
from pyramid.interfaces import ISession
from pyramid.settings import asbool
-from zope.interface import implements
+from zope.interface import implementer
from binascii import hexlify
def BeakerSessionFactoryConfig(**options):
""" Return a Pyramid session factory using Beaker session settings
supplied directly as ``**options``"""
+ @implementer(ISession)
class PyramidBeakerSessionObject(SessionObject):
- implements(ISession)
_options = options
_cookie_on_exception = _options.pop('cookie_on_exception', True)
def __init__(self, request):

0 comments on commit 4bd3cf0

Please sign in to comment.