Files @ 7d0476e1f1dc
Branch filter:

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

Marcin Kuzminski
fixes issue #678 Incorrect diff markup when diff contains >, <, or & symbols
- regex by \W did split &amp; and other to 3 tokens, and escaping was broken
"""
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')