OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17210
/
usr
/
lib
/
python3
/
dist-packages
/
markupsafe
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
__init__.py
10.1 KB
05/08/2014 02:52:34 PM
rw-r--r--
📁
__pycache__
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
_compat.py
565 bytes
04/17/2014 09:01:00 AM
rw-r--r--
📄
_constants.py
4.68 KB
05/20/2013 04:08:35 PM
rw-r--r--
📄
_native.py
1.16 KB
05/20/2013 05:45:22 PM
rw-r--r--
📄
_speedups.cpython-35m-x86_64-linux-gnu.so
10.38 KB
01/18/2016 11:15:42 PM
rw-r--r--
📄
tests.py
5.96 KB
05/08/2014 02:58:28 PM
rw-r--r--
Editing: _compat.py
Close
# -*- coding: utf-8 -*- """ markupsafe._compat ~~~~~~~~~~~~~~~~~~ Compatibility module for different Python versions. :copyright: (c) 2013 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import sys PY2 = sys.version_info[0] == 2 if not PY2: text_type = str string_types = (str,) unichr = chr int_types = (int,) iteritems = lambda x: iter(x.items()) else: text_type = unicode string_types = (str, unicode) unichr = unichr int_types = (int, long) iteritems = lambda x: x.iteritems()