Picture-Puzzle-website/venv/Lib/site-packages/flask_babelex/_compat.py

21 lines
362 B
Python

# -*- coding: utf-8 -*-
"""
flask_babelex._compat
~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2013 by Armin Ronacher, Daniel Neuhäuser.
:license: BSD, see LICENSE for more details.
"""
import sys
PY2 = sys.version_info[0] == 2
if PY2:
text_type = unicode
string_types = (str, unicode)
else:
text_type = str
string_types = (str, )