# Path: torext/compat.py
# def decode_(s, *args):
#     return s.decode(*args)
# 
# PY2 = sys.version_info.major == 2


from torext.compat import decode_, PY2
#!/usr/bin/env python
# -*- coding: utf-8 -*-



class TorextException(Exception):
    def __init__(self, message=''):
        if isinstance(message, str):
            message = decode_(message, 'utf8')
        self.message = message


# Path: torext/compat.py
# def decode_(s, *args):
#     return s.decode(*args)
# 
# PY2 = sys.version_info.major == 2


# Path: torext/errors.py
from torext.compat import decode_, PY2

#!/usr/bin/env python
# -*- coding: utf-8 -*-



class TorextException(Exception):
    def __init__(self, message=''):
        if isinstance(message, str):
            message = decode_(message, 'utf8')
        self.message = message


    if PY2: