From ce68134af42e146656643630dc8c305be52dfe50 Mon Sep 17 00:00:00 2001
From: William Ting <io@williamting.com>
Date: Sat, 13 Jul 2013 18:14:07 -0500
Subject: [PATCH] move unico()

---
 bin/autojump | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/bin/autojump b/bin/autojump
index c371d0e..bfdcbf2 100755
--- a/bin/autojump
+++ b/bin/autojump
@@ -345,6 +345,15 @@ def decode(text, encoding=None, errors='strict'):
     else:
         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):
     quotes = ""
     if config['args'].complete and config['args'].bash:
@@ -364,14 +373,6 @@ def output(text, encoding=None):
     else:
         print(text)
 
-def unico(text):
-    """
-    If Python 2, convert to a unicode object.
-    """
-    if is_python2():
-        return unicode(text)
-    else:
-        return text
 
 #
 # Main Logic