Support Python 2.4
This commit is contained in:
parent
93df7ca18f
commit
77444275fd
@ -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}".format(ord(c)))
|
||||
str_list.append("\\{0:03o}" % ord(c))
|
||||
else:
|
||||
str_list.append(c)
|
||||
return '"' + ''.join(str_list) + '"'
|
||||
@ -230,6 +230,7 @@ def fireplace_repl_interact():
|
||||
host = vim.eval('self.host')
|
||||
port = int(vim.eval('self.port'))
|
||||
s.settimeout(8)
|
||||
try:
|
||||
try:
|
||||
s.connect((host, port))
|
||||
s.setblocking(1)
|
||||
|
Loading…
Reference in New Issue
Block a user