mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
Merge pull request #38 from jebaum/fix-unicode
encode strings with utf-8
This commit is contained in:
commit
a8aa82c7e9
@ -214,7 +214,7 @@ def main():
|
|||||||
"""Print with colors"""
|
"""Print with colors"""
|
||||||
try:
|
try:
|
||||||
c = color_dict[kwargs.pop("color")]
|
c = color_dict[kwargs.pop("color")]
|
||||||
args = (c + str(args[0]),) + args[1:] + (colorama.Style.RESET_ALL,)
|
args = (c + str(args[0].encode('utf-8')),) + args[1:] + (colorama.Style.RESET_ALL,)
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
pass
|
pass
|
||||||
except IndexError as e:
|
except IndexError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user