Allow MODE arguments that do not start with a + or a -.

This commit is contained in:
Valentin Lorentz 2018-02-06 15:35:49 +01:00
parent 9c1d46d151
commit af98c0c12e

View File

@ -254,9 +254,9 @@ def separateModes(args):
if not args:
return []
modes = args[0]
assert modes[0] in '+-', 'Invalid args: %r' % args
args = list(args[1:])
ret = []
last = '+'
for c in modes:
if c in '+-':
last = c