# Path: core/ezdxf/tools/c23.py
# PY3 = sys.version_info.major > 2
# def isstring(s):


from .c23 import unicode2bytes
import zlib
# Purpose: dxf tag type def
# Created: 30.04.2014
# Copyright (C) 2014, Manfred Moitzi
# License: MIT License

from __future__ import unicode_literals
__author__ = "mozman <mozman@gmx.at>"




class CompressedString(object):
    def __init__(self, s):

# Path: core/ezdxf/tools/c23.py
# PY3 = sys.version_info.major > 2
# def isstring(s):


# Path: core/ezdxf/tools/compressedstring.py
from .c23 import unicode2bytes
import zlib

# Purpose: dxf tag type def
# Created: 30.04.2014
# Copyright (C) 2014, Manfred Moitzi
# License: MIT License

from __future__ import unicode_literals
__author__ = "mozman <mozman@gmx.at>"




class CompressedString(object):
    def __init__(self, s):

        self._data = zlib.compress(unicode2bytes(s))