Skip to content
This repository has been archived by the owner on Apr 6, 2018. It is now read-only.

Commit

Permalink
Replace evil default kwarg dict
Browse files Browse the repository at this point in the history
  • Loading branch information
nottombrown committed Jan 9, 2017
1 parent b9815e8 commit 4b93e68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion universe/envs/vnc_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4b93e68

Please sign in to comment.