Skip to content

Commit

Permalink
Fixed Python3 issue in Overlay.get
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 6, 2015
1 parent 002d9a4 commit 8ceabe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/core/overlay.py
Expand Up @@ -110,9 +110,9 @@ def __getitem__(self, key):

def get(self, identifier, default=None):
if isinstance(identifier, int):
values = self.data.values()
values = list(self.data.values())
if 0 <= identifier < len(values):
return self.data.values()[identifier]
return values[identifier]
else:
return default
return super(Overlay, self).get(identifier, default)
Expand Down

0 comments on commit 8ceabe3

Please sign in to comment.