# Path: pymorphy/py3k.py
# PY3 = sys.version_info[0] == 3


from shelve import DbfilenameShelf
from struct import pack, unpack
from pymorphy.py3k import text_type, binary_type
import marshal
    import simplejson as json
    import json
#coding: utf8
try:
except ImportError:


def _to_utf8(s):
    if isinstance(s, binary_type):
        return s

# Path: pymorphy/py3k.py
# PY3 = sys.version_info[0] == 3


# Path: pymorphy/backends/shelve_source/shelf_with_hooks.py
from shelve import DbfilenameShelf
from struct import pack, unpack
from pymorphy.py3k import text_type, binary_type
import marshal
    import simplejson as json
    import json

#coding: utf8
try:
except ImportError:


def _to_utf8(s):
    if isinstance(s, binary_type):
        return s

    return s.encode('utf8')