From 4b93e684868f53fbabf7b7ece4387f8a4cd04c76 Mon Sep 17 00:00:00 2001 From: Tom Brown Date: Mon, 9 Jan 2017 12:10:04 -0800 Subject: [PATCH] Replace evil default kwarg dict --- universe/envs/vnc_env.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/universe/envs/vnc_env.py b/universe/envs/vnc_env.py index 0d0241ed..eab5fabc 100644 --- a/universe/envs/vnc_env.py +++ b/universe/envs/vnc_env.py @@ -137,7 +137,7 @@ def _configure(self, remotes=None, client_id=None, start_timeout=None, docker_image=None, ignore_clock_skew=False, disable_action_probes=False, - vnc_driver=None, vnc_kwargs={}, + vnc_driver=None, vnc_kwargs=None, rewarder_driver=None, replace_on_crash=False, allocate_sync=True, observer=False, api_key=None, @@ -186,6 +186,9 @@ def _configure(self, remotes=None, if client_id is None: client_id = default_client_id() + if vnc_kwargs is None: + vnc_kwargs = {} + self.remote_manager, self.n = remotes_module.build( client_id=client_id, remotes=remotes, runtime=runtime, start_timeout=start_timeout,