removed unnecessary __future__ imports

master
idziubenko 3 years ago
parent e373ef1f79
commit 6bb6850d08

@ -2,7 +2,6 @@
#=============================================================================
# imports
#=============================================================================
from __future__ import absolute_import, division, print_function
# core
import datetime
from distutils.dist import Distribution

@ -3,7 +3,6 @@
#=============================================================================
# imports
#=============================================================================
from __future__ import with_statement
# core
import logging; log = logging.getLogger(__name__)
import os

@ -2,7 +2,6 @@
#=============================================================================
# imports
#=============================================================================
from __future__ import with_statement
# core
import re
import logging; log = logging.getLogger(__name__)

@ -5,7 +5,6 @@
#=============================================================================
# imports
#=============================================================================
from __future__ import division
# core
import hashlib
import logging; log = logging.getLogger(__name__)

@ -6,7 +6,6 @@ XXX: add this module to public docs?
#==========================================================================
# imports
#==========================================================================
from __future__ import absolute_import
# core
import logging; log = logging.getLogger(__name__)
from warnings import warn

@ -15,7 +15,6 @@ References
#=============================================================================
# imports
#=============================================================================
from __future__ import with_statement, absolute_import
# core
import logging
log = logging.getLogger(__name__)

@ -10,7 +10,6 @@ TODO:
#=============================================================================
# imports
#=============================================================================
from __future__ import with_statement, absolute_import
# core
from base64 import b64encode
from hashlib import sha256

@ -2,7 +2,6 @@
#=============================================================================
# imports
#=============================================================================
from __future__ import with_statement, absolute_import
# core
import logging; log = logging.getLogger(__name__)
# site

@ -2,7 +2,6 @@
#=============================================================================
# imports
#=============================================================================
from __future__ import absolute_import, division, print_function, unicode_literals
# core
import codecs
from collections import defaultdict

@ -2,7 +2,6 @@
#=============================================================================
# imports
#=============================================================================
from __future__ import absolute_import, division, print_function
from passlib.utils.compat import PY3
# core
import base64

@ -5,7 +5,6 @@ passlib.utils.binary - binary data encoding/decoding/manipulation
# imports
#=============================================================================
# core
from __future__ import absolute_import, division, print_function
from base64 import (
b64encode,
b64decode,

@ -5,7 +5,6 @@ passlib.utils.decor -- helper decorators & properties
# imports
#=============================================================================
# core
from __future__ import absolute_import, division, print_function
import logging
log = logging.getLogger(__name__)
from functools import wraps, update_wrapper

@ -2,7 +2,6 @@
#=============================================================================
# imports
#=============================================================================
from __future__ import with_statement
# core
import inspect
import logging; log = logging.getLogger(__name__)

@ -6,7 +6,6 @@ maybe rename to "kdf" since it's getting more key derivation functions added.
#=============================================================================
# imports
#=============================================================================
from __future__ import division
# core
import logging; log = logging.getLogger(__name__)
# site

@ -40,7 +40,6 @@ The progressbar module is very easy to use, yet very powerful. It will also
automatically enable features like auto-resizing when the system supports it.
'''
from __future__ import division
import math
import os

@ -20,7 +20,6 @@
'''Default ProgressBar widgets'''
from __future__ import division
import datetime
import math

@ -22,7 +22,6 @@
apps."""
from __future__ import absolute_import
from spyne import RemoteService, ClientBase, RemoteProcedureBase

@ -25,7 +25,7 @@ to generate those documents.
"""
from __future__ import print_function
from spyne.interface._base import Interface
from spyne.interface._base import InterfaceDocumentBase

@ -21,7 +21,6 @@
defining models.
"""
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -23,7 +23,6 @@ subclasses. These are mainly container classes for other simple or
complex objects -- they don't carry any data by themselves.
"""
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -26,7 +26,6 @@ See :mod:`spyne.protocol._model` for {to,from}_string implementations.
"""
from __future__ import absolute_import
from spyne.model import SimpleModel
from spyne.model.primitive import NATIVE_MAP

@ -17,7 +17,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import absolute_import
import re
import spyne

@ -17,7 +17,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import unicode_literals
import decimal
import uuid

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function, unicode_literals
, unicode_literals
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -18,7 +18,7 @@
#
from __future__ import print_function
import logging
logger_c = logging.getLogger("%s.cloth" % __name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -24,7 +24,7 @@ somewhat working state, it is not that easy to use. Expect a revamp in the
coming versions.
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -42,7 +42,7 @@ is always "from outside to inside" whereas ``object_pairs_hook`` is passed
.. [#] http://docs.python.org/2/library/json.html#json.loads
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -24,7 +24,7 @@ Initially released in 2.8.0-rc.
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -26,7 +26,7 @@ tested.
Testcases and preferably improvements are most welcome.
"""
from __future__ import print_function, unicode_literals
, unicode_literals
import logging
logger = logging.getLogger(__name__)

@ -23,7 +23,7 @@ Currently, only :class:`spyne.protocol.yaml.YamlDocument` is supported.
Initially released in 2.10.0-rc.
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -22,7 +22,7 @@ transport. It's a thin wrapper around
:class:`spyne.server.wsgi.WsgiApplication`.
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -23,7 +23,7 @@ objects.
The name comes from the "null modem connection". Look it up.
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -22,7 +22,7 @@ transport. It's a thin wrapper around
:class:`spyne.server.wsgi.WsgiApplication`.
"""
from __future__ import absolute_import
from pyramid.response import Response
from spyne.server.wsgi import WsgiApplication

@ -37,7 +37,7 @@ information in wsdl seriously, all requests will go to the designated url above
which can make testing a bit difficult. Use in moderation.
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -41,7 +41,7 @@ This module is EXPERIMENTAL. Your mileage may vary. Patches are welcome.
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -18,7 +18,7 @@
#
from __future__ import absolute_import, print_function
, print_function
import logging
logger = logging.getLogger(__name__)

@ -19,7 +19,7 @@
#
from __future__ import absolute_import
import datetime
import re

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import pytz
import datetime

@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import re
import uuid

@ -17,7 +17,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import unicode_literals
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import logging
logger = logging.getLogger(__name__)

@ -1,6 +1,5 @@
#!/usr/bin/env python
from __future__ import unicode_literals
import unittest

@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import print_function
import logging
logging.basicConfig(level=logging.DEBUG)

@ -1,6 +1,6 @@
#!/usr/bin/env python
from __future__ import print_function
import json
import decimal

@ -40,7 +40,7 @@
# THE SOFTWARE.
#
from __future__ import print_function
# Direct plagiarization of https://github.com/un33k/django-ipware/
# at 57897c03026913892e61a164bc8b022778802ab9

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import absolute_import
try:

@ -24,7 +24,7 @@
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
#
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -20,7 +20,7 @@
"""Utilities for writing code that runs on Python 2 and 3"""
from __future__ import absolute_import
import functools
import itertools

@ -23,7 +23,7 @@ Some code dump from some time ago.
If you're using this for anything serious, you're insane.
"""
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)

@ -13,7 +13,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from contextlib import contextmanager
import sys

@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
from __future__ import absolute_import
import sys
import ldap
from .utils.common import _error

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import logging
import logging.handlers
from . import cl_overriding

@ -15,7 +15,7 @@
# limitations under the License.
from __future__ import absolute_import
import sys
from .utils.text import _u, get_term_size
from . import cl_overriding

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import sys
import calculate.contrib.progressbar as progressbar

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
import sys
import signal
from os import environ

@ -120,8 +120,7 @@ ConfigParser -- responsible for parsing a list of
between keys and values are surrounded by spaces.
"""
from __future__ import with_statement
from __future__ import absolute_import
from collections import MutableMapping
from io import open
from collections import OrderedDict as _default_dict

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from .utils.text import convertStrListDict
from calculate.lib.configparser import ConfigParser
from collections import defaultdict

@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
from __future__ import absolute_import
import re
import sys
import importlib

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import sys
import os
import hashlib

@ -15,10 +15,8 @@
# limitations under the License.
import re
from calculate.lib.cl_xml import xpath
from calculate.lib.cl_xml import xpath, xmlDoc
from generic import objShare
from calculate.lib.cl_xml import xmlDoc
class procmail(objShare):
"""Класс для обработки конфигурационного файла типа procmail

@ -13,7 +13,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from .printing import Print
from .palette import TextState
from .info import Terminal

@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from .output import BaseOutput
from .palette import (TextState, BaseColorMapping, ConsoleCodesInfo,
LightColorMapping, ConsoleColor256, XmlFormat)

@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from xml.etree import ElementTree as ET
from .palette import (TextState, BaseColorMapping,
ConsoleCodeMapping, LightColorMapping, ConsoleColor256,

@ -13,7 +13,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# from __future__ import absolute_import
from .output import BaseOutput, BasePositionOutput
from calculate.lib.utils.text import _uu8
from io import IOBase

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from random import choice
import os
import re

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import dbus
from os import path
from xml.etree import ElementTree

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import sys
import re
import os

@ -13,7 +13,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import hashlib
import select
import random

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from .files import (process, checkUtils, readFile, listDirectory,
getRunCommands, getProgPath, FilesError)
from . import device

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import sys
import re
from os import path

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import sys
import os
import re

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
from itertools import tee
from functools import total_ordering, wraps
import warnings

@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import os
from calculate.lib.utils.files import readFile
from collections import Mapping, deque

@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import sys
from calculate.lib.datavars import ReadonlyVariable

@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
import sys
import os
from os import path

Loading…
Cancel
Save