Mercurial > kallithea
view rhodecode/lib/vcs/utils/compat.py @ 3146:c5169e445fb8 beta
Full IP restrictions enabled
- short cache query for IP for performance
- remove redundant logic
- some small css fixes for login form to better show IP restricted message
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 04 Jan 2013 23:34:53 +0100 |
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')