Skip to content

Commit

Permalink
Merge pull request #2265 from mdboom/webagg-python3-encoding-issues
Browse files Browse the repository at this point in the history
WebAgg favicon serving error in Python 3
  • Loading branch information
pelson committed Aug 1, 2013
2 parents 4c9efcd + a493382 commit 2766df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/backend_webagg.py
Expand Up @@ -378,7 +378,7 @@ class FavIcon(tornado.web.RequestHandler):
def get(self):
self.set_header('Content-Type', 'image/png')
with open(os.path.join(WebAggApplication._mpl_dirs['images'],
'matplotlib.png')) as fd:
'matplotlib.png'), 'rb') as fd:
self.write(fd.read())

class SingleFigurePage(tornado.web.RequestHandler):
Expand Down

0 comments on commit 2766df0

Please sign in to comment.