You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
366 B
Python
21 lines
366 B
Python
8 years ago
|
# -*- coding: utf-8 -*-
|
||
|
"""
|
||
|
flask.ext.babel._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, )
|