Skip to content

Commit 8468ac0

Browse files
committed
decode
1 parent eedcd91 commit 8468ac0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cli/cli_presentation.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from pathlib import Path
55

66

7-
87
## Επιβεβαίωση της λειτουργίας (healthcheck) ##
98
input('press enter for healthcheck..')
109
print()
@@ -31,7 +30,7 @@
3130
producedOutput, err = process.communicate()
3231
raw_out = producedOutput.decode("utf-8")
3332

34-
print(raw_out)
33+
print(raw_out.encode().decode('unicode-escape'))
3534
print()
3635

3736

@@ -97,8 +96,7 @@
9796
process = Popen(command, shell=True, stdout=PIPE, stderr=PIPE)
9897
producedOutput, err = process.communicate()
9998
raw_out = producedOutput.decode("utf-8")
100-
101-
print(raw_out)
99+
print(raw_out.encode().decode('unicode-escape'))
102100
print()
103101

104102

@@ -114,7 +112,7 @@
114112
producedOutput, err = process.communicate()
115113
raw_out = producedOutput.decode("utf-8")
116114

117-
print(raw_out)
115+
print(raw_out.encode().decode('unicode-escape'))
118116
print()
119117

120118
input('This is the end...')

0 commit comments

Comments
 (0)