Follow isort formatting
issue10928
This commit is contained in:
1 parent
1eb39850ab
commit
b034b09d3a
7 files changed
+17
-12
No files matched your search
@@ -0,0 +1,3 @@
|
||||
[settings]
|
||||
multi_line_output=4
|
||||
known_first_party=trytond
|
||||
+1
-2
@@ -3,8 +3,7 @@
|
||||
|
||||
from trytond.pool import Pool
|
||||
|
||||
from . import product
|
||||
from . import routes
|
||||
from . import product, routes
|
||||
|
||||
__all__ = ['register', 'routes']
|
||||
|
||||
|
||||
+5
-5
@@ -2,15 +2,15 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
import io
|
||||
import math
|
||||
from urllib.parse import urljoin, quote, urlencode
|
||||
from urllib.parse import quote, urlencode, urljoin
|
||||
|
||||
import PIL.Image
|
||||
|
||||
from trytond.config import config
|
||||
from trytond.model import ModelSQL, ModelView, MatchMixin, sequence_ordered
|
||||
from trytond.model import fields, Unique
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.pyson import Eval, Bool, If
|
||||
from trytond.model import (
|
||||
MatchMixin, ModelSQL, ModelView, Unique, fields, sequence_ordered)
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pyson import Bool, Eval, If
|
||||
from trytond.tools import slugify
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.url import http_host
|
||||
|
||||
@@ -4,15 +4,15 @@ try:
|
||||
from http import HTTPStatus
|
||||
except ImportError:
|
||||
from http import client as HTTPStatus
|
||||
|
||||
from urllib.parse import unquote
|
||||
|
||||
from werkzeug.exceptions import abort
|
||||
from werkzeug.wrappers import Response
|
||||
|
||||
from trytond.config import config
|
||||
from trytond.wsgi import app
|
||||
from trytond.protocols.wrappers import with_pool, with_transaction
|
||||
|
||||
from trytond.wsgi import app
|
||||
|
||||
TIMEOUT = config.getint('product', 'image_timeout', default=365 * 24 * 60 * 60)
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ import io
|
||||
import os
|
||||
import re
|
||||
from configparser import ConfigParser
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
|
||||
def read(fname):
|
||||
|
||||
+2
-1
@@ -2,7 +2,8 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
try:
|
||||
from trytond.modules.product_image.tests.test_product_image import suite # noqa: E501
|
||||
from trytond.modules.product_image.tests.test_product_image import \
|
||||
suite # noqa: E501
|
||||
except ImportError:
|
||||
from .test_product_image import suite
|
||||
|
||||
|
||||
@@ -7,8 +7,9 @@ import urllib.request
|
||||
import PIL.Image
|
||||
|
||||
from trytond.pool import Pool
|
||||
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
from trytond.tests.test_tryton import suite as test_suite
|
||||
from trytond.tests.test_tryton import with_transaction
|
||||
|
||||
|
||||
class ProductImageTestCase(ModuleTestCase):
|
||||
|
||||
Reference in new issue
Block a user