From 84df73bcc4862cb867b6a9e09bacdf11ed89969b Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Thu, 26 Sep 2019 23:11:19 +0200 Subject: [PATCH] Fix issue with cli on python 3.5 --- .github/workflows/main.yml | 8 ++++++-- cli/lesspass/cli.py | 2 +- cli/lesspass/clipboard.py | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f1c259..b385a00 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,11 +24,15 @@ jobs: test-python-cli: runs-on: ubuntu-latest + strategy: + max-parallel: 3 + matrix: + python-version: [3.5, 3.6, 3.7] steps: - uses: actions/checkout@v1 - uses: actions/setup-python@v1 with: - python-version: '3.x' + python-version: ${{ matrix.python-version }} - name: test python cli run: | cd cli @@ -44,7 +48,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-python@v1 with: - python-version: '3.x' + python-version: "3.6" - name: test python backend run: | cd containers/backend diff --git a/cli/lesspass/cli.py b/cli/lesspass/cli.py index 569c873..e9d5ad1 100644 --- a/cli/lesspass/cli.py +++ b/cli/lesspass/cli.py @@ -79,7 +79,7 @@ def parse_args(args): "--copy", dest="clipboard", action="store_true", - help="copy to password to clipboard", + help="copy the password to clipboard", ) lowercase_group = parser.add_mutually_exclusive_group() diff --git a/cli/lesspass/clipboard.py b/cli/lesspass/clipboard.py index 2d579bb..fcbe6a9 100644 --- a/cli/lesspass/clipboard.py +++ b/cli/lesspass/clipboard.py @@ -26,7 +26,7 @@ def get_system_copy_command(): def _popen(args, **kwargs): - return subprocess.Popen(args, stdin=subprocess.PIPE, encoding="utf8") + return subprocess.Popen(args, stdin=subprocess.PIPE) commands = {