py3: remove use of pyramid.compat

This commit is contained in:
RhodeCode Admin 2023-03-06 15:52:51 +01:00
parent afbf679a60
commit dbf975898e
44 changed files with 73 additions and 119 deletions

View file

@ -19,7 +19,6 @@
# and proprietary license terms, please see https://rhodecode.com/licenses/
import os
import logging
from pyramid import compat
# Do not use `from rhodecode import events` here, it will be overridden by the
# events module in this package due to pythons import mechanism.
@ -67,7 +66,7 @@ def _append_path_sep(path):
"""
Append the path separator if missing.
"""
if isinstance(path, compat.string_types) and not path.endswith(os.path.sep):
if isinstance(path, str) and not path.endswith(os.path.sep):
path += os.path.sep
return path