Hi all;
I’m porting some code to python 3 using six. One problem remain with de python devices trying to make use of six’s “with_metaclass”.
I tried the following:
class MyDevice(with_metaclass(DeviceMeta, Device)):
but got this error:
File ".../python2.7/site-packages/six-1.10.0-py2.7.egg/six.py", line 805, in with_metaclass
class metaclass(meta):
TypeError: Error when calling the metaclass bases
function() argument 1 must be code, not str
Whats’ wrong? I did the same with some of my own classes and it works perfectly.