py3: remove use of pyramid.compat
This commit is contained in:
parent
afbf679a60
commit
dbf975898e
44 changed files with 73 additions and 119 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue