Permalink
Browse files

Fix Python3-incompatible method call

Issue #154
  • Loading branch information...
1 parent 34c516a commit 8364d69ac80470c1d67386797d11daef7084b83a @marijnh marijnh committed Dec 17, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 script/tern.py
View
@@ -1,4 +1,4 @@
-import vim, os, platform, subprocess, webbrowser, json, re, string, time
+import vim, os, platform, subprocess, webbrowser, json, re, time
import sys
PY2 = int(sys.version[0]) == 2
if PY2:
@@ -440,7 +440,7 @@ def mycmp(a,b):
if buffer is None:
with open(file, "w") as f:
f.writelines(lines)
- external.append({"name": file, "text": string.join(lines, ""), "type": "full"})
+ external.append({"name": file, "text": "".join(lines), "type": "full"})
if len(external):
tern_sendBuffer(external)
vim.command("call setloclist(0," + json.dumps(changes) + ") | lopen")

0 comments on commit 8364d69

Please sign in to comment.