From 59c5a414b968cd391636f2d6cc8baf7b3a1012b9 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Sat, 27 Mar 2021 23:44:33 +0100 Subject: [PATCH] Pyflakes fixes. --- __init__.py | 6 ++---- shop.py | 2 -- tests/__init__.py | 3 ++- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/__init__.py b/__init__.py index a2fd1d8..9302c18 100644 --- a/__init__.py +++ b/__init__.py @@ -1,11 +1,9 @@ # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. - from trytond.pool import Pool -from .shop import * - +from . import shop def register(): Pool.register( - Shop, + shop.Shop, module='sale_shop_trade_info', type_='model') diff --git a/shop.py b/shop.py index 79318cd..d2df339 100644 --- a/shop.py +++ b/shop.py @@ -4,8 +4,6 @@ from trytond.model import fields from trytond.pool import PoolMeta -__all__ = ['Shop'] - class Shop(metaclass=PoolMeta): __name__ = 'sale.shop' diff --git a/tests/__init__.py b/tests/__init__.py index 3ef2501..a668e2d 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,5 @@ # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. - from .test_sale_shop_trade_info import suite + +__all__ = ['suite']