mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix docker_service python3 incompatibility
Looks like this is supposed to operate on native strings so there's no need to encode or decode at all here Fixes #30354
This commit is contained in:
parent
dc8aedb274
commit
f66c74915c
1 changed files with 1 additions and 1 deletions
|
@ -520,7 +520,7 @@ def get_redirected_output(path_name):
|
|||
with open(path_name, 'r') as fd:
|
||||
for line in fd:
|
||||
# strip terminal format/color chars
|
||||
new_line = re.sub(r'\x1b\[.+m', '', line.encode('ascii'))
|
||||
new_line = re.sub(r'\x1b\[.+m', '', line)
|
||||
output.append(new_line)
|
||||
fd.close()
|
||||
os.remove(path_name)
|
||||
|
|
Loading…
Reference in a new issue