Files @ 9bc052942640
Branch filter:

Location: kallithea/rhodecode/lib/vcs/utils/compat.py - annotation

Mads Kiilerich
pullrequests: fix non-js defaults for repo owner

Owner of default_other_repo was never sent to the the template ... and the
template would fail if it had been sent. Instead we set default_other_repo_info
to the other_repos_info struct and use that to find the owner.
"""
Various utilities to work with Python < 2.7.

Those utilities may be deleted once ``vcs`` stops support for older Python
versions.
"""
import sys


if sys.version_info >= (2, 7):
    unittest = __import__('unittest')
else:
    unittest = __import__('unittest2')