aboutsummaryrefslogtreecommitdiff
path: root/contrib/hldiff.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hldiff.py')
-rwxr-xr-xcontrib/hldiff.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/contrib/hldiff.py b/contrib/hldiff.py
index 5f660fd..f3cfd20 100755
--- a/contrib/hldiff.py
+++ b/contrib/hldiff.py
@@ -3,13 +3,11 @@ from colorama import Fore, Style
import sys
import re
-ansi_escape = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
stat_re = re.compile(r'(| \d+ )(\+*)(\-*)')
lines_re = re.compile(r'@@ (-\d+,\d+ \+\d+,\d+) @@')
sys.stdin.reconfigure(encoding='utf-8', errors='ignore')
patch = sys.stdin.read().replace("\r\n", "\n")
-patch = ansi_escape.sub('', patch)
hit_diff = False
for line in patch.split("\n"):