From 16a066c2ab90ec49081c6886fa1e876c1624814e Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Wed, 31 Jul 2019 12:10:25 +0800 Subject: [PATCH] Fix `maxsplit` error in py2 (#2977) --- ppdet/utils/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppdet/utils/cli.py b/ppdet/utils/cli.py index a903c20a2..7b7a89060 100644 --- a/ppdet/utils/cli.py +++ b/ppdet/utils/cli.py @@ -63,7 +63,7 @@ class ArgsParser(ArgumentParser): return config for s in opts: s = s.strip() - k, v = s.split('=', maxsplit=1) + k, v = s.split('=', 1) if '.' not in k: config[k] = yaml.load(v, Loader=yaml.Loader) else: -- GitLab