This commit is contained in:
a 2020-09-22 00:11:21 +03:00
parent 03bacf4087
commit 08765c4c90
5 changed files with 4 additions and 14 deletions

View file

@ -61,10 +61,7 @@ class RichCompletion(str):
def __repr__(self):
return "RichCompletion({}, prefix_len={}, display={}, description={})".format(
repr(str(self)),
self.prefix_len,
repr(self.display),
repr(self.description),
repr(str(self)), self.prefix_len, repr(self.display), repr(self.description)
)

View file

@ -202,7 +202,7 @@ class JsonHistoryGC(threading.Thread):
# info: file size, closing timestamp, number of commands, filename
ts = lj.get("ts", (0.0, None))
files.append(
(ts[1] or ts[0], len(lj.sizes["cmds"]) - 1, f, cur_file_size,),
(ts[1] or ts[0], len(lj.sizes["cmds"]) - 1, f, cur_file_size)
)
lj.close()
if xonsh_debug:

View file

@ -181,7 +181,7 @@ class FStringAdaptor:
)
)
field_node = ast.Tuple(
elts=elts, ctx=ast.Load(), lineno=lineno, col_offset=col_offset,
elts=elts, ctx=ast.Load(), lineno=lineno, col_offset=col_offset
)
node.args[0] = field_node

View file

@ -159,13 +159,7 @@ def _ul_add_action(actions, opt, res_type, stderr):
actions.append(
[
_ul_show,
{
"res": r[0],
"res_type": res_type,
"desc": r[3],
"unit": r[4],
"opt": opt,
},
{"res": r[0], "res_type": res_type, "desc": r[3], "unit": r[4], "opt": opt},
]
)
return True

View file

@ -39,4 +39,3 @@ def custom_keybindings(bindings, **kw):
endpos = endpos + 1 if startpos == 0 else endpos
buff.text = buff.text[:startpos] + buff.text[endpos:]
buff.cursor_position = startpos