From ae1a8d3967a5bff3b368520e25bc2f53e684b7ce Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 10 Jan 2019 11:31:30 +0100 Subject: [PATCH] Avoid redefining built-in "list". --- examples/python/actor-suspend/actor-suspend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/actor-suspend/actor-suspend.py b/examples/python/actor-suspend/actor-suspend.py index 5fecb46c6f..703ba159ba 100644 --- a/examples/python/actor-suspend/actor-suspend.py +++ b/examples/python/actor-suspend/actor-suspend.py @@ -75,7 +75,7 @@ if __name__ == '__main__': "Usage: actor-suspend.py platform_file [other parameters]") e.load_platform(sys.argv[1]) # Load the platform description - list = e.get_all_hosts() - Actor.create("dream_master", list[0], dream_master) + hosts = e.get_all_hosts() + Actor.create("dream_master", hosts[0], dream_master) e.run() # Run the simulation -- 2.20.1