Use str.partition() for --label argument parsing
@@ -263,11 +263,8 @@ def make_r2d(argv=None):
r2d.appendix = args.appendix
for l in args.labels:
- if "=" in l:
- key, val = l.split("=", 1)
+ key, _, val = l.partition("=")
r2d.labels[key] = val
- else:
- r2d.labels[l] = ""
for a in args.build_args:
key, _, val = a.partition("=")
