Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jun 22, 2021
1 parent a1f54bd commit 13f02b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions antsibull/docs_parsing/ansible_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import json
import sys
import os
import re
import traceback
import typing as t
from concurrent.futures import ThreadPoolExecutor
Expand Down Expand Up @@ -209,7 +208,8 @@ def get_ansible_core_version(venv: t.Union['VenvRunner', 'FakeVenvRunner'],
env: t.Dict[str, str],
) -> PypiVer:
venv_python = venv.get_command('python')
ansible_version_cmd = venv_python('-c', 'import ansible.release; print(ansible.release.__version__)', _env=env)
ansible_version_cmd = venv_python(
'-c', 'import ansible.release; print(ansible.release.__version__)', _env=env)
output = ansible_version_cmd.stdout.decode('utf-8', errors='surrogateescape').strip()
return PypiVer(output)

Expand Down

0 comments on commit 13f02b8

Please sign in to comment.