Skip to content

Commit

Permalink
Fix Dict space for list arguments (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhseu authored and wojzaremba committed Sep 7, 2017
1 parent a3683a7 commit afe0c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gym/spaces/dict_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, spaces):
if isinstance(spaces, dict):
spaces = OrderedDict(sorted(list(spaces.items())))
if isinstance(spaces, list):
self.spaces = OrderedDict(spaces)
spaces = OrderedDict(spaces)
self.spaces = spaces

def sample(self):
Expand Down

0 comments on commit afe0c42

Please sign in to comment.