devtools/fill.py
changeset 10688 fa29f3628a1b
parent 10609 e2d8e81bfe68
child 10702 f94c812c3669
--- a/devtools/fill.py	Wed Sep 16 11:28:07 2015 +0200
+++ b/devtools/fill.py	Wed Sep 16 13:57:21 2015 +0200
@@ -27,6 +27,7 @@
 from datetime import datetime, date, time, timedelta
 from decimal import Decimal
 
+from six import add_metaclass
 from six.moves import range
 
 from logilab.common import attrdict
@@ -262,8 +263,10 @@
                 setattr(_ValueGenerator, attrname, attrvalue)
         return type.__new__(mcs, name, bases, classdict)
 
+
+@add_metaclass(autoextend)
 class ValueGenerator(_ValueGenerator):
-    __metaclass__ = autoextend
+    pass
 
 
 def _default_choice_func(etype, attrname):