Mercurial > kallithea
view rhodecode/lib/vcs/utils/compat.py @ 2212:727e1f922a89 beta
exclude the actual grep command in memwatch
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 30 Apr 2012 14:10:58 +0200 |
parents | 324ac367a4da |
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')