From 9f63b5a3b7b9265c467411eb0f519895cb7d94cb Mon Sep 17 00:00:00 2001 From: Shikhar Kumar Date: Thu, 20 Dec 2018 00:40:08 -0500 Subject: [PATCH] Use kwargs instead of kwargs.keys() --- openmc/cmfd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/cmfd.py b/openmc/cmfd.py index 167331cd2f..c13b6991d4 100644 --- a/openmc/cmfd.py +++ b/openmc/cmfd.py @@ -623,7 +623,7 @@ class CMFDRun(object): """ # Store intracomm for part of CMFD routine where MPI reduce and # broadcast calls are made - if 'intracomm' in kwargs.keys() and kwargs['intracomm'] is not None: + if 'intracomm' in kwargs and kwargs['intracomm'] is not None: self._intracomm = kwargs['intracomm'] elif have_mpi: self._intracomm = MPI.COMM_WORLD