mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
FIXU: Lint
This commit is contained in:
parent
76ff961c78
commit
1d9e0575a5
2 changed files with 3 additions and 4 deletions
|
@ -6,7 +6,6 @@ import sys
|
||||||
import time
|
import time
|
||||||
from typing import Callable, Optional
|
from typing import Callable, Optional
|
||||||
|
|
||||||
from ..document import Document
|
|
||||||
from ..conversion.common import DangerzoneConverter
|
from ..conversion.common import DangerzoneConverter
|
||||||
from ..document import Document
|
from ..document import Document
|
||||||
from ..util import get_resource_path
|
from ..util import get_resource_path
|
||||||
|
@ -51,14 +50,14 @@ class Dummy(IsolationProvider):
|
||||||
"python3",
|
"python3",
|
||||||
"-c",
|
"-c",
|
||||||
"from dangerzone.isolation_provider.dummy import dummy_script;"
|
"from dangerzone.isolation_provider.dummy import dummy_script;"
|
||||||
" dummy_script()"
|
" dummy_script()",
|
||||||
]
|
]
|
||||||
return subprocess.Popen(
|
return subprocess.Popen(
|
||||||
cmd,
|
cmd,
|
||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=self.proc_stderr,
|
stderr=self.proc_stderr,
|
||||||
start_new_session=True
|
start_new_session=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
def terminate_doc_to_pixels_proc(
|
def terminate_doc_to_pixels_proc(
|
||||||
|
|
|
@ -9,11 +9,11 @@ import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import traceback
|
import traceback
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from pytest_mock import MockerFixture
|
|
||||||
from typing import Optional, Sequence
|
from typing import Optional, Sequence
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from click.testing import CliRunner, Result
|
from click.testing import CliRunner, Result
|
||||||
|
from pytest_mock import MockerFixture
|
||||||
from strip_ansi import strip_ansi
|
from strip_ansi import strip_ansi
|
||||||
|
|
||||||
from dangerzone.cli import cli_main, display_banner
|
from dangerzone.cli import cli_main, display_banner
|
||||||
|
|
Loading…
Reference in a new issue