python3: removed compat modules
This commit is contained in:
parent
255d0e78ee
commit
92fe8c512d
9 changed files with 9 additions and 10 deletions
|
|
@ -27,7 +27,7 @@ from pyramid.httpexceptions import HTTPFound
|
|||
from rhodecode.apps._base import BaseAppView
|
||||
from rhodecode.lib import helpers as h
|
||||
from rhodecode.lib.auth import LoginRequired
|
||||
from rhodecode.lib.compat import OrderedDict
|
||||
from collections import OrderedDict
|
||||
from rhodecode.model.db import UserApiKeys
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import pytest
|
|||
from rhodecode.apps.repository.tests.test_repo_compare import ComparePage
|
||||
from rhodecode.apps.repository.views.repo_files import RepoFilesView
|
||||
from rhodecode.lib import helpers as h
|
||||
from rhodecode.lib.compat import OrderedDict
|
||||
from collections import OrderedDict
|
||||
from rhodecode.lib.ext_json import json
|
||||
from rhodecode.lib.vcs import nodes
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import pytest
|
|||
|
||||
from rhodecode.apps.repository.views.repo_summary import RepoSummaryView
|
||||
from rhodecode.lib import helpers as h
|
||||
from rhodecode.lib.compat import OrderedDict
|
||||
from collections import OrderedDict
|
||||
from rhodecode.lib.utils2 import AttributeDict, safe_str
|
||||
from rhodecode.lib.vcs.exceptions import RepositoryRequirementError
|
||||
from rhodecode.model.db import Repository
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ from rhodecode.lib import diffs, codeblocks, channelstream
|
|||
from rhodecode.lib.auth import (
|
||||
LoginRequired, HasRepoPermissionAnyDecorator, NotAnonymous, CSRFRequired)
|
||||
from rhodecode.lib.ext_json import json
|
||||
from rhodecode.lib.compat import OrderedDict
|
||||
from collections import OrderedDict
|
||||
from rhodecode.lib.diffs import (
|
||||
cache_diff, load_cached_diff, diff_cache_exist, get_diff_context,
|
||||
get_diff_whitespace_flag)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ import errno
|
|||
|
||||
from multiprocessing.util import Finalize
|
||||
|
||||
from rhodecode.lib.compat import kill
|
||||
|
||||
|
||||
class LockHeld(Exception):
|
||||
|
|
@ -92,7 +91,7 @@ class DaemonLock(object):
|
|||
# process PID
|
||||
if running_pid:
|
||||
try:
|
||||
kill(running_pid, 0)
|
||||
os.kill(running_pid, 0)
|
||||
except OSError as exc:
|
||||
if exc.errno in (errno.ESRCH, errno.EPERM):
|
||||
print("Lock File is there but"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import re
|
|||
|
||||
from zope.cachedescriptors.property import Lazy as LazyProperty
|
||||
|
||||
from rhodecode.lib.compat import OrderedDict
|
||||
from collections import OrderedDict
|
||||
from rhodecode.lib.datelib import (
|
||||
utcdate_fromtimestamp, makedate, date_astimestamp)
|
||||
from rhodecode.lib.utils import safe_unicode, safe_str
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import urllib.request, urllib.parse, urllib.error
|
|||
|
||||
from zope.cachedescriptors.property import Lazy as LazyProperty
|
||||
|
||||
from rhodecode.lib.compat import OrderedDict
|
||||
from collections import OrderedDict
|
||||
from rhodecode.lib.datelib import (
|
||||
date_to_timestamp_plus_offset, utcdate_fromtimestamp, makedate)
|
||||
from rhodecode.lib.utils import safe_unicode, safe_str
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import urllib.request, urllib.parse, urllib.error
|
|||
|
||||
from zope.cachedescriptors.property import Lazy as LazyProperty
|
||||
|
||||
from rhodecode.lib.compat import OrderedDict
|
||||
from collections import OrderedDict
|
||||
from rhodecode.lib.datelib import date_astimestamp
|
||||
from rhodecode.lib.utils import safe_str, safe_unicode
|
||||
from rhodecode.lib.utils2 import CachedProperty
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ from rhodecode.lib.vcs.nodes import FileNode
|
|||
from rhodecode.translation import lazy_ugettext
|
||||
from rhodecode.lib import helpers as h, hooks_utils, diffs
|
||||
from rhodecode.lib import audit_logger
|
||||
from rhodecode.lib.compat import OrderedDict
|
||||
from collections import OrderedDict
|
||||
from rhodecode.lib.hooks_daemon import prepare_callback_daemon
|
||||
from rhodecode.lib.markup_renderer import (
|
||||
DEFAULT_COMMENTS_RENDERER, RstTemplateRenderer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue