1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

move unico()

This commit is contained in:
William Ting 2013-07-13 18:14:07 -05:00
parent cb5efa7953
commit ce68134af4

View File

@ -345,6 +345,15 @@ def decode(text, encoding=None, errors='strict'):
else: else:
return text return text
def unico(text):
"""
If Python 2, convert to a unicode object.
"""
if is_python2():
return unicode(text)
else:
return text
def output_quotes(config, text): def output_quotes(config, text):
quotes = "" quotes = ""
if config['args'].complete and config['args'].bash: if config['args'].complete and config['args'].bash:
@ -364,14 +373,6 @@ def output(text, encoding=None):
else: else:
print(text) print(text)
def unico(text):
"""
If Python 2, convert to a unicode object.
"""
if is_python2():
return unicode(text)
else:
return text
# #
# Main Logic # Main Logic