This is an automated email from the ASF dual-hosted git repository.
zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 40a2a52 Use chain.from_iterable in 2 modules (#18606)
40a2a52 is described below
commit 40a2a524a3696817ce6272c2c6292e2cae53b462
Author: Ram Rachum <[email protected]>
AuthorDate: Mon Sep 7 10:41:51 2020 +0300
Use chain.from_iterable in 2 modules (#18606)
---
ci/build.py | 2 +-
tools/license_header.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ci/build.py b/ci/build.py
index f42be18..1e9e23f 100755
--- a/ci/build.py
+++ b/ci/build.py
@@ -291,7 +291,7 @@ def main() -> int:
args = parser.parse_args()
- command = list(chain(*args.command))
+ command = list(chain.from_iterable(args.command))
docker_client = SafeDockerClient()
environment = dict([(e.split('=')[:2] if '=' in e else (e, os.environ[e]))
diff --git a/tools/license_header.py b/tools/license_header.py
index 7f03b3e..193ec1e 100755
--- a/tools/license_header.py
+++ b/tools/license_header.py
@@ -294,7 +294,7 @@ def main():
args = parser.parse_args()
action = args.action[0]
- files = list(chain(*args.file))
+ files = list(chain.from_iterable(args.file))
if not files and action =='check':
if under_git():
logging.info("Git detected: Using files under version control")