diff --git a/bin/autojump b/bin/autojump
index aec04c59a6a63966e091f73c3706c9625fd991a5..15c26b9ee4e9c96d107c9f3dac40bb56d2dfcf91 100755
--- a/bin/autojump
+++ b/bin/autojump
@@ -193,7 +193,7 @@ class Database:
             for path, weight in sorted(self.data.items(),
                     key=itemgetter(1),
                     reverse=True):
-                temp.write((unico("%s\t%s\n")%(weight, path)).encode("utf-8"))
+                temp.write((unico("%s\t%s\n" % (weight, path)).encode("utf-8")))
 
             # catching disk errors and skipping save when file handle can't
             # be closed.