NewsBlur/vendor/readability/compat/__init__.py
2020-06-17 05:40:43 -04:00

11 lines
340 B
Python
Executable file

"""
This module contains compatibility helpers for Python 2/3 interoperability.
It mainly exists because their are certain incompatibilities in the Python
syntax that can only be solved by conditionally importing different functions.
"""
import sys
if sys.version_info[0] == 2:
str_ = str
elif sys.version_info[0] == 3:
str_ = str