From: Arnaud Giersch Date: Thu, 10 Jan 2019 10:31:30 +0000 (+0100) Subject: Avoid redefining built-in "list". X-Git-Tag: v3_22~611 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ae1a8d3967a5bff3b368520e25bc2f53e684b7ce Avoid redefining built-in "list". --- 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