mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
42ce3de8d0
commit
04aa7701d1
1 changed files with 2 additions and 2 deletions
|
@ -264,8 +264,8 @@ class Display:
|
||||||
self._errors[new_msg] = 1
|
self._errors[new_msg] = 1
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def prompt(self, msg):
|
def prompt(msg):
|
||||||
prompt_string = to_bytes(msg, encoding=self._output_encoding())
|
prompt_string = to_bytes(msg, encoding=Display._output_encoding())
|
||||||
if sys.version_info >= (3,):
|
if sys.version_info >= (3,):
|
||||||
# Convert back into text on python3. We do this double conversion
|
# Convert back into text on python3. We do this double conversion
|
||||||
# to get rid of characters that are illegal in the user's locale
|
# to get rid of characters that are illegal in the user's locale
|
||||||
|
|
Loading…
Reference in a new issue