@ -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 @@
from __future__ import with_statement
import logging; log = logging.getLogger(__name__)
import os
import re
@ -5,7 +5,6 @@
from __future__ import division
import hashlib
@ -6,7 +6,6 @@ XXX: add this module to public docs?
#==========================================================================
from __future__ import absolute_import
from warnings import warn
@ -15,7 +15,6 @@ References
from __future__ import with_statement, absolute_import
import logging
log = logging.getLogger(__name__)
@ -10,7 +10,6 @@ TODO:
from base64 import b64encode
from hashlib import sha256
# site
from __future__ import absolute_import, division, print_function, unicode_literals
import codecs
from collections import defaultdict
from passlib.utils.compat import PY3
import base64
@ -5,7 +5,6 @@ passlib.utils.binary - binary data encoding/decoding/manipulation
from base64 import (
b64encode,
b64decode,
@ -5,7 +5,6 @@ passlib.utils.decor -- helper decorators & properties
from functools import wraps, update_wrapper
import inspect
@ -6,7 +6,6 @@ maybe rename to "kdf" since it's getting more key derivation functions added.
@ -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.
'''
import math
@ -20,7 +20,6 @@
'''Default ProgressBar widgets'''
@ -22,7 +22,6 @@
apps."""
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.
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.
@ -26,7 +26,6 @@ See :mod:`spyne.protocol._model` for {to,from}_string implementations.
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
#
import spyne
from __future__ import unicode_literals
import decimal
import uuid
@ -17,7 +17,7 @@
from __future__ import print_function, unicode_literals
, unicode_literals
@ -18,7 +18,7 @@
logger_c = logging.getLogger("%s.cloth" % __name__)
@ -24,7 +24,7 @@ somewhat working state, it is not that easy to use. Expect a revamp in the
coming versions.
@ -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
@ -24,7 +24,7 @@ Initially released in 2.8.0-rc.
@ -26,7 +26,7 @@ tested.
Testcases and preferably improvements are most welcome.
@ -23,7 +23,7 @@ Currently, only :class:`spyne.protocol.yaml.YamlDocument` is supported.
Initially released in 2.10.0-rc.
@ -22,7 +22,7 @@ transport. It's a thin wrapper around
:class:`spyne.server.wsgi.WsgiApplication`.
@ -23,7 +23,7 @@ objects.
The name comes from the "null modem connection". Look it up.
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.
@ -41,7 +41,7 @@ This module is EXPERIMENTAL. Your mileage may vary. Patches are welcome.
from __future__ import absolute_import, print_function
, print_function
@ -19,7 +19,7 @@
import pytz
@ -1,6 +1,5 @@
#!/usr/bin/env python
import unittest
logging.basicConfig(level=logging.DEBUG)
@ -1,6 +1,6 @@
import json
@ -40,7 +40,7 @@
# THE SOFTWARE.
# Direct plagiarization of https://github.com/un33k/django-ipware/
# at 57897c03026913892e61a164bc8b022778802ab9
try:
@ -24,7 +24,7 @@
@ -20,7 +20,7 @@
"""Utilities for writing code that runs on Python 2 and 3"""
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.
@ -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 contextlib import contextmanager
import sys
@ -14,8 +14,8 @@
import ldap
from .utils.common import _error
@ -14,7 +14,7 @@
import logging.handlers
from . import cl_overriding
@ -15,7 +15,7 @@
from .utils.text import _u, get_term_size
import calculate.contrib.progressbar as progressbar
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 collections import MutableMapping
from io import open
from collections import OrderedDict as _default_dict
from .utils.text import convertStrListDict
from calculate.lib.configparser import ConfigParser
import importlib
@ -15,10 +15,8 @@
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
from .printing import Print
from .palette import TextState
from .info import Terminal
@ -14,7 +14,6 @@
from .output import BaseOutput
from .palette import (TextState, BaseColorMapping, ConsoleCodesInfo,
LightColorMapping, ConsoleColor256, XmlFormat)
from xml.etree import ElementTree as ET
from .palette import (TextState, BaseColorMapping,
ConsoleCodeMapping, LightColorMapping, ConsoleColor256,
# from __future__ import absolute_import
from .output import BaseOutput, BasePositionOutput
from calculate.lib.utils.text import _uu8
from io import IOBase
from random import choice
import dbus
from os import path
from xml.etree import ElementTree
@ -13,7 +13,7 @@
import select
import random
from .files import (process, checkUtils, readFile, listDirectory,
getRunCommands, getProgPath, FilesError)
from . import device
from itertools import tee
from functools import total_ordering, wraps
import warnings
from calculate.lib.utils.files import readFile
from collections import Mapping, deque
from calculate.lib.datavars import ReadonlyVariable