From d267bbd784288a78f2da84460257868a4be54dfa Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 2 Jul 2015 15:58:02 +0700 Subject: [PATCH] Fix bug in Executor._run_openmc that caused infinite loop in Python 3 --- openmc/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/executor.py b/openmc/executor.py index 74c56a976..6dfb3566c 100644 --- a/openmc/executor.py +++ b/openmc/executor.py @@ -35,7 +35,7 @@ class Executor(object): print(line, end='') # If OpenMC is finished, break loop - if line == '' and p.poll() != None: + if not line and p.poll() != None: break # Return the returncode (integer, zero if no problems encountered)