import argparse
# Own modules
-try:
- from .global_version import __version__ as __global_version__
-except (SystemError, ImportError):
- from global_version import __version__ as __global_version__
-
-try:
- from .errors import FunctionNotImplementedError, PpAppError
-except (SystemError, ImportError):
- from errors import FunctionNotImplementedError, PpAppError
-
-try:
- from .common import pp, terminal_can_colors, to_bytes
-except (SystemError, ImportError):
- from common import pp, terminal_can_colors, to_bytes
-
-try:
- from .colored import ColoredFormatter, colorstr
-except (SystemError, ImportError):
- from colored import ColoredFormatter, colorstr
-
-try:
- from .obj import PpBaseObjectError, PpBaseObject
-except (SystemError, ImportError):
- from obj import PpBaseObjectError, PpBaseObject
-
-__version__ = '0.1.0'
+from .global_version import __version__ as __global_version__
+
+from .errors import FunctionNotImplementedError, PpAppError
+
+from .common import pp, terminal_can_colors, to_bytes
+
+from .colored import ColoredFormatter, colorstr
+
+from .obj import PpBaseObjectError, PpBaseObject
+
+__version__ = '0.2.1'
LOG = logging.getLogger(__name__)
import re
# Own modules
-try:
- from .errors import InvalidMailAddressError
-except (SystemError, ImportError):
- from errors import InvalidMailAddressError
+from .errors import InvalidMailAddressError
-try:
- from .common import to_str
-except (SystemError, ImportError):
- from common import to_str
+from .common import to_str
-__version__ = '0.2.2'
+__version__ = '0.3.1'
log = logging.getLogger(__name__)
import six
# Own modules
-try:
- from .common import pp, to_bytes
-except (SystemError, ImportError):
- from common import pp, to_bytes
+from .common import pp, to_bytes
-try:
- from .errors import PpError
-except (SystemError, ImportError):
- from errors import PpError
+from .errors import PpError
-__version__ = '0.1.1'
+__version__ = '0.2.1'
LOG = logging.getLogger(__name__)