mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
move unico()
This commit is contained in:
parent
cb5efa7953
commit
ce68134af4
17
bin/autojump
17
bin/autojump
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user