Commits

Jonathan Eunice committed f096032

tweaked

Comments (0)

Files changed (3)

 
 def with_metaclass(meta, base=object):
     """
-    Create a base class with a metaclass.
+    Create a base class with a metaclass. Compatible across Python 2 and Python
+    3. Extension of the with_metaclass() found in the six module.
     """
     if not isinstance(base, tuple):
         basetuple = (base,)
 
 setup(
     name='mementos',
-    version=verno("0.501"),
+    version=verno("0.503"),
     author='Jonathan Eunice',
     author_email='jonathan.eunice@gmail.com',
     description='Memoizing metaclass. Drop-dead simple way to create cached objects',
 from mementos import *
 import sys, pytest
 
-def with_metaclass(meta, base=object):
-    """Create a base class with a metaclass."""
-    return meta("NewBase", (base,), {})
-
 def test_one():    
     class Thing(with_metaclass(MementoMetaclass, object)):