mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-11 03:31:29 -07:00
Use print function
This commit is contained in:
parent
3d2a056ad4
commit
683c2913c5
4 changed files with 8 additions and 8 deletions
|
@ -43,14 +43,14 @@ class Display:
|
|||
if not log_only:
|
||||
if not stderr:
|
||||
try:
|
||||
print msg2
|
||||
print(msg2)
|
||||
except UnicodeEncodeError:
|
||||
print msg2.encode('utf-8')
|
||||
print(msg2.encode('utf-8'))
|
||||
else:
|
||||
try:
|
||||
print >>sys.stderr, msg2
|
||||
print(msg2, file=sys.stderr)
|
||||
except UnicodeEncodeError:
|
||||
print >>sys.stderr, msg2.encode('utf-8')
|
||||
print(msg2.encode('utf-8'), file=sys.stderr)
|
||||
if C.DEFAULT_LOG_PATH != '':
|
||||
while msg.startswith("\n"):
|
||||
msg = msg.replace("\n","")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue