Commit 12e34398 authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

Strip ANSI escapes from the output of Procyon. Thanks, Aman Sharma.

parent d16faf7c
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ from diffoscope.difference import Difference
from diffoscope.exc import RequiredToolNotFound

from .utils.file import File
from .utils.command import Command
from .utils.command import Command, strip_ansi_escapes

logger = logging.getLogger(__name__)

@@ -44,7 +44,7 @@ class ProcyonDecompiler(Command):
    def filter(self, line):
        if re.match(r"^(//)", line.decode("utf-8")):
            return b""
        return line
        return strip_ansi_escapes(line)


class Javap(Command):