Follow isort formatting

issue10928
This commit is contained in:
Cédric Krier
2021-12-11 17:58:45 +01:00
parent b7cfe58248
commit 631c48fc15
8 changed files with 14 additions and 8 deletions
+3
View File
@@ -0,0 +1,3 @@
[settings]
multi_line_output=4
known_first_party=trytond
+2 -1
View File
@@ -4,7 +4,8 @@
import io
import os
import re
from setuptools import setup, find_packages
from setuptools import find_packages, setup
def read(fname):
+3 -2
View File
@@ -3,11 +3,12 @@
from sql import Null
from sql.operators import Not
from trytond import backend
from trytond.model import fields
from trytond.model.fields.field import SQL_OPERATORS
from trytond_gis import _GeoJSON, sql as geo_sql
from trytond_gis import _GeoJSON
from trytond_gis import sql as geo_sql
GEOGRAPHIC_OPERATORS = {
'=': geo_sql.ST_Equals,
+1
View File
@@ -2,6 +2,7 @@
# this repository contains the full copyright notices and license terms.
from trytond.backend.postgresql.database import (
DatabaseIntegrityError, DatabaseOperationalError)
from .database import Database
from .table import TableHandler
+2 -3
View File
@@ -3,12 +3,11 @@
import binascii
from geomet import wkb
from psycopg2.extensions import (register_adapter, new_type, register_type,
Binary)
from psycopg2.extensions import (
Binary, new_type, register_adapter, register_type)
from trytond.backend.postgresql.database import Database as PGDatabase
from trytond.config import parse_uri
from trytond_gis import _GeoJSON
+1 -2
View File
@@ -2,10 +2,9 @@
# this repository contains the full copyright notices and license terms.
import logging
from trytond.backend.postgresql.table import TableHandler as PGTableHandler
from trytond.config import config
from trytond.transaction import Transaction
from trytond.backend.postgresql.table import TableHandler as PGTableHandler
from trytond_gis.const import GIS_SQL_TYPE_RE, WGS_84
logger = logging.getLogger(__name__)
+1
View File
@@ -2,6 +2,7 @@
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
from . import gis
+1
View File
@@ -1,6 +1,7 @@
# This file is part of trytond_gis. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import unittest
from sql import Null
from trytond.pool import Pool