From f96490eaa0fa3245afeb9cc082fdd12bce5c326e Mon Sep 17 00:00:00 2001 From: Carlos G?lvez Date: Fri, 7 Sep 2018 07:20:08 +0200 Subject: [PATCH] Add python 3 support --- product.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/product.py b/product.py index 0f9d637..47e4543 100644 --- a/product.py +++ b/product.py @@ -7,8 +7,7 @@ from trytond.transaction import Transaction __all__ = ['Template', 'Product'] -class Template: - __metaclass__ = PoolMeta +class Template(metaclass=PoolMeta): __name__ = 'product.template' def sum_product(self, name): @@ -24,8 +23,7 @@ class Template: return super(Template, self).sum_product(name) -class Product: - __metaclass__ = PoolMeta +class Product(metaclass=PoolMeta): __name__ = 'product.product' @classmethod