Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 614093c commit 921e49fCopy full SHA for 921e49f
lib/matplotlib/testing/compare.py
@@ -300,7 +300,7 @@ def convert(filename, cache):
300
_log.debug("For %s: converting to png.", filename)
301
convert = converter[path.suffix[1:]]
302
if path.suffix == ".svg":
303
- contents = path.read_text()
+ contents = path.read_text(encoding="utf-8")
304
# NOTE: This check should be kept in sync with font styling in
305
# `lib/matplotlib/backends/backend_svg.py`. If it changes, then be sure to
306
# re-generate any SVG test files using this mode, or else such tests will
0 commit comments