equal
deleted
inserted
replaced
1320 def makecommands(rules): |
1320 def makecommands(rules): |
1321 """Returns a list of commands consumable by histedit --commands based on |
1321 """Returns a list of commands consumable by histedit --commands based on |
1322 our list of rules""" |
1322 our list of rules""" |
1323 commands = [] |
1323 commands = [] |
1324 for rules in rules: |
1324 for rules in rules: |
1325 commands.append(b"{0} {1}\n".format(rules.action, rules.ctx)) |
1325 commands.append(b'%s %s\n' % (rules.action, rules.ctx)) |
1326 return commands |
1326 return commands |
1327 |
1327 |
1328 |
1328 |
1329 def addln(win, y, x, line, color=None): |
1329 def addln(win, y, x, line, color=None): |
1330 """Add a line to the given window left padding but 100% filled with |
1330 """Add a line to the given window left padding but 100% filled with |