diff --git a/osc/commandline.py b/osc/commandline.py index 416a9460..7aa47b24 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1630,7 +1630,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. # python has no args.unshift ??? args = [ conf.config['getpac_default_project'] , args[0] ] - if not (len(args) >= 2 and len(args) <= 4): + if len(args) < 2 or len(args) > 4: raise oscerr.WrongArgs('Wrong number of arguments.') expected = 'home:%s:branches:%s' % (conf.config['user'], args[0]) if len(args) >= 3: