Skip to content

Commit

Permalink
Drop support for Python 2.4 and 2.5.
Browse files Browse the repository at this point in the history
Replace deprecated 'zope.interface.implements' usage with equivalent
'zope.interface.implementer' decorator.
  • Loading branch information
tseaver committed May 18, 2012
1 parent b608c93 commit 6a7cfc7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGES.txt
Expand Up @@ -2,9 +2,14 @@
CHANGES
=======

1.0.1 (unreleased)
2.0.0 (unreleased)
------------------

- Replaced deprecated ``zope.interface.implements`` usage with equivalent
``zope.interface.implementer`` decorator.

- Dropped support for Python 2.4 and 2.5.

- Removed outdated classifier / keywords.

1.0 (2009-07-23)
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Expand Up @@ -20,7 +20,7 @@ def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

setup(name = 'zope.ramcache',
version = '1.0.1dev',
version = '2.0.0dev',
author='Zope Foundation and Contributors',
author_email='zope-dev@zope.org',
description='Zope RAM Cache',
Expand All @@ -36,6 +36,9 @@ def read(*rnames):
'Intended Audience :: Developers',
'License :: OSI Approved :: Zope Public License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
Expand Down
5 changes: 2 additions & 3 deletions src/zope/ramcache/ram.py
Expand Up @@ -20,7 +20,7 @@
from cPickle import dumps

from persistent import Persistent
from zope.interface import implements
from zope.interface import implementer
from zope.location.interfaces import IContained

from zope.ramcache.interfaces.ram import IRAMCache
Expand All @@ -37,6 +37,7 @@
cache_id_writelock = Lock()


@implementer(IRAMCache, IContained)
class RAMCache(Persistent):
"""The design of this class is heavily based on RAMCacheManager in Zope2.
Expand All @@ -51,8 +52,6 @@ class RAMCache(Persistent):
objects are shared between threads and handle their blocking internally.
"""

implements(IRAMCache, IContained)

__parent__ = __name__ = None

def __init__(self):
Expand Down

0 comments on commit 6a7cfc7

Please sign in to comment.