Skip to content

Commit

Permalink
Make strip-ansi Mac-only
Browse files Browse the repository at this point in the history
  • Loading branch information
micahflee committed Jun 22, 2021
1 parent d3d417e commit e3dc798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dangerzone/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import click
import uuid
from PySide2 import QtCore, QtWidgets
from strip_ansi import strip_ansi

from .common import GuiCommon
from .main_window import MainWindow
Expand Down Expand Up @@ -55,6 +54,8 @@ def gui_main(custom_container, filename):

# Strip ANSI colors from stdout output, to prevent terminal colors from breaking
# the macOS GUI app
from strip_ansi import strip_ansi

class StdoutFilter:
def __init__(self, stream):
self.stream = stream
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ wmi = {version = "*", platform = "win32"}
pyxdg = {version = "*", platform = "linux"}
pyobjc-core = {version = "*", platform = "darwin"}
pyobjc-framework-launchservices = {version = "*", platform = "darwin"}
strip-ansi = {version = "*", platform = "darwin"}
colorama = "^0.4.4"
strip-ansi = "^0.1.1"

[tool.poetry.dev-dependencies]
pyinstaller = {version = "*", platform = "darwin"}
Expand Down

0 comments on commit e3dc798

Please sign in to comment.