def smart_path(string):
    if os.path.supports_unicode_filenames:
        return smart_unicode(string)
    return smart_str(string)
Returns a string you can pass to path.path safely.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/utils.py/smart_path