Skip to content
Browse files

Restore Python 2.5 compatiblity.

  • Loading branch information...
1 parent 4bd3cf0 commit 03cdf238dcd23622bbfd72259235174165ac9c80 @tseaver tseaver committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 pyramid_beaker/__init__.py
View
3 pyramid_beaker/__init__.py
@@ -15,7 +15,6 @@ def BeakerSessionFactoryConfig(**options):
""" Return a Pyramid session factory using Beaker session settings
supplied directly as ``**options``"""
- @implementer(ISession)
class PyramidBeakerSessionObject(SessionObject):
_options = options
_cookie_on_exception = _options.pop('cookie_on_exception', True)
@@ -91,7 +90,7 @@ def get_csrf_token(self):
token = self.new_csrf_token()
return token
- return PyramidBeakerSessionObject
+ return implementer(ISession)(PyramidBeakerSessionObject)
def call_save(wrapped):

0 comments on commit 03cdf23

Please sign in to comment.
Something went wrong with that request. Please try again.