mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 09:39:01 +00:00
#N/A: Use unicode in all log functions
This commit is contained in:
parent
6f39edc155
commit
8375b78877
@ -80,34 +80,34 @@ def debug_time(msg):
|
|||||||
|
|
||||||
|
|
||||||
def how_to_configure_alias(configuration_details):
|
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),
|
bold=color(colorama.Style.BRIGHT),
|
||||||
reset=color(colorama.Style.RESET_ALL)))
|
reset=color(colorama.Style.RESET_ALL)))
|
||||||
|
|
||||||
if configuration_details:
|
if configuration_details:
|
||||||
print(
|
print(
|
||||||
"Please put {bold}{content}{reset} in your "
|
u"Please put {bold}{content}{reset} in your "
|
||||||
"{bold}{path}{reset} and apply "
|
u"{bold}{path}{reset} and apply "
|
||||||
"changes with {bold}{reload}{reset} or restart your shell.".format(
|
u"changes with {bold}{reload}{reset} or restart your shell.".format(
|
||||||
bold=color(colorama.Style.BRIGHT),
|
bold=color(colorama.Style.BRIGHT),
|
||||||
reset=color(colorama.Style.RESET_ALL),
|
reset=color(colorama.Style.RESET_ALL),
|
||||||
**configuration_details._asdict()))
|
**configuration_details._asdict()))
|
||||||
|
|
||||||
if configuration_details.can_configure_automatically:
|
if configuration_details.can_configure_automatically:
|
||||||
print(
|
print(
|
||||||
"Or run {bold}fuck{reset} second time for configuring"
|
u"Or run {bold}fuck{reset} second time for configuring"
|
||||||
" it automatically.".format(
|
u" it automatically.".format(
|
||||||
bold=color(colorama.Style.BRIGHT),
|
bold=color(colorama.Style.BRIGHT),
|
||||||
reset=color(colorama.Style.RESET_ALL)))
|
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):
|
def already_configured(configuration_details):
|
||||||
print(
|
print(
|
||||||
"Seems like {bold}fuck{reset} alias already configured!\n"
|
u"Seems like {bold}fuck{reset} alias already configured!\n"
|
||||||
"For applying changes run {bold}{reload}{reset}"
|
u"For applying changes run {bold}{reload}{reset}"
|
||||||
" or restart your shell.".format(
|
u" or restart your shell.".format(
|
||||||
bold=color(colorama.Style.BRIGHT),
|
bold=color(colorama.Style.BRIGHT),
|
||||||
reset=color(colorama.Style.RESET_ALL),
|
reset=color(colorama.Style.RESET_ALL),
|
||||||
reload=configuration_details.reload))
|
reload=configuration_details.reload))
|
||||||
@ -115,9 +115,9 @@ def already_configured(configuration_details):
|
|||||||
|
|
||||||
def configured_successfully(configuration_details):
|
def configured_successfully(configuration_details):
|
||||||
print(
|
print(
|
||||||
"{bold}fuck{reset} alias configured successfully!\n"
|
u"{bold}fuck{reset} alias configured successfully!\n"
|
||||||
"For applying changes run {bold}{reload}{reset}"
|
u"For applying changes run {bold}{reload}{reset}"
|
||||||
" or restart your shell.".format(
|
u" or restart your shell.".format(
|
||||||
bold=color(colorama.Style.BRIGHT),
|
bold=color(colorama.Style.BRIGHT),
|
||||||
reset=color(colorama.Style.RESET_ALL),
|
reset=color(colorama.Style.RESET_ALL),
|
||||||
reload=configuration_details.reload))
|
reload=configuration_details.reload))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user