8000 Merge pull request #2265 from mdboom/webagg-python3-encoding-issues · matplotlib/matplotlib@2766df0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2766df0

Browse files
committed
Merge pull request #2265 from mdboom/webagg-python3-encoding-issues
WebAgg favicon serving error in Python 3
2 parents 4c9efcd + a493382 commit 2766df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_webagg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ class FavIcon(tornado.web.RequestHandler):
378378
def get(self):
379379
self.set_header('Content-Type', 'image/png')
380380
with open(os.path.join(WebAggApplication._mpl_dirs['images'],
381-
'matplotlib.png')) as fd:
381+
'matplotlib.png'), 'rb') as fd:
382382
self.write(fd.read())
383383

384384
class SingleFigurePage(tornado.web.RequestHandler):

0 commit comments

Comments
 (0)
0