scikit-learn/sklearn/externals/joblib/_compat.py

10 lines
216 B
Python

"""
Compatibility layer for Python 3/Python 2 single codebase
"""
try:
_basestring = basestring
_bytes_or_unicode = (str, unicode)
except NameError:
_basestring = str
_bytes_or_unicode = (bytes, str)