From 2efe294efb51ac633eb4c104db9f50f9e11a2fce Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 19 Apr 2013 11:41:51 -0400 Subject: [PATCH] Fix for newer Pythons --- autoload/nrepl/fireplace_connection.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/nrepl/fireplace_connection.vim b/autoload/nrepl/fireplace_connection.vim index 84a93e7..3cf0a0c 100644 --- a/autoload/nrepl/fireplace_connection.vim +++ b/autoload/nrepl/fireplace_connection.vim @@ -216,7 +216,7 @@ def fireplace_string_encode(input): str_list = [] for c in input: if (000 <= ord(c) and ord(c) <= 037) or c == '"' or c == "\\": - str_list.append("\\{0:03o}" % ord(c)) + str_list.append("\\{0:03o}".format(ord(c))) else: str_list.append(c) return '"' + ''.join(str_list) + '"'