From 8375b7887741477b29a0a065026a49887316f7c6 Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Tue, 14 Mar 2017 09:49:36 +0100 Subject: [PATCH] #N/A: Use unicode in all log functions --- thefuck/logs.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/thefuck/logs.py b/thefuck/logs.py index cd87bd8..cb96e57 100644 --- a/thefuck/logs.py +++ b/thefuck/logs.py @@ -80,34 +80,34 @@ def debug_time(msg): def how_to_configure_alias(configuration_details): - print("Seems like {bold}fuck{reset} alias isn't configured!".format( + print(u"Seems like {bold}fuck{reset} alias isn't configured!".format( bold=color(colorama.Style.BRIGHT), reset=color(colorama.Style.RESET_ALL))) if configuration_details: print( - "Please put {bold}{content}{reset} in your " - "{bold}{path}{reset} and apply " - "changes with {bold}{reload}{reset} or restart your shell.".format( + u"Please put {bold}{content}{reset} in your " + u"{bold}{path}{reset} and apply " + u"changes with {bold}{reload}{reset} or restart your shell.".format( bold=color(colorama.Style.BRIGHT), reset=color(colorama.Style.RESET_ALL), **configuration_details._asdict())) if configuration_details.can_configure_automatically: print( - "Or run {bold}fuck{reset} second time for configuring" - " it automatically.".format( + u"Or run {bold}fuck{reset} second time for configuring" + u" it automatically.".format( bold=color(colorama.Style.BRIGHT), reset=color(colorama.Style.RESET_ALL))) - print('More details - https://github.com/nvbn/thefuck#manual-installation') + print(u'More details - https://github.com/nvbn/thefuck#manual-installation') def already_configured(configuration_details): print( - "Seems like {bold}fuck{reset} alias already configured!\n" - "For applying changes run {bold}{reload}{reset}" - " or restart your shell.".format( + u"Seems like {bold}fuck{reset} alias already configured!\n" + u"For applying changes run {bold}{reload}{reset}" + u" or restart your shell.".format( bold=color(colorama.Style.BRIGHT), reset=color(colorama.Style.RESET_ALL), reload=configuration_details.reload)) @@ -115,9 +115,9 @@ def already_configured(configuration_details): def configured_successfully(configuration_details): print( - "{bold}fuck{reset} alias configured successfully!\n" - "For applying changes run {bold}{reload}{reset}" - " or restart your shell.".format( + u"{bold}fuck{reset} alias configured successfully!\n" + u"For applying changes run {bold}{reload}{reset}" + u" or restart your shell.".format( bold=color(colorama.Style.BRIGHT), reset=color(colorama.Style.RESET_ALL), reload=configuration_details.reload))