Mercurial > kallithea
view rhodecode/lib/vcs/utils/compat.py @ 2007:324ac367a4da beta
Added VCS into rhodecode core for faster and easier deployments of new versions
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 20 Feb 2012 23:00:54 +0200 |
parents | |
children | d7488551578e |
line wrap: on
line source
""" 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')