From 7614b02f7aae16e1891b08122e8d332a522a857d Mon Sep 17 00:00:00 2001 From: Sridhar Thiagarajan Date: Fri, 31 May 2019 14:27:11 -0700 Subject: [PATCH] remove f strings for python back compatibility (#906) --- baselines/common/mpi_adam_optimizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baselines/common/mpi_adam_optimizer.py b/baselines/common/mpi_adam_optimizer.py index 3d7cee5..32d9453 100644 --- a/baselines/common/mpi_adam_optimizer.py +++ b/baselines/common/mpi_adam_optimizer.py @@ -65,7 +65,7 @@ def check_synced(localval, comm=None): vals = comm.gather(localval) if comm.rank == 0: assert all(val==vals[0] for val in vals[1:]),\ - f'MpiAdamOptimizer detected that different workers have different weights: {vals}' + 'MpiAdamOptimizer detected that different workers have different weights: {}'.format(vals) @with_mpi(timeout=5) def test_nonfreeze():