Skip to content

Commit

Permalink
Fixed py2 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 15, 2019
1 parent c8a891c commit 2d55450
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion panel/widgets/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _process_param_change(self, msg):
with open(value, 'rb') as f:
data = f.read()
data = b64encode(data)
elif str.lower(value).startswith('http'):
elif value.lower().startswith('http'):
return msg
elif not value:
data, fmt = b'', 'wav'
Expand All @@ -77,6 +77,8 @@ def _process_param_change(self, msg):
mime=fmt)
return msg



class VideoStream(Widget):

format = param.ObjectSelector(default='png', objects=['png', 'jpeg'],
Expand Down

0 comments on commit 2d55450

Please sign in to comment.