Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c7ed151

Browse filesBrowse files
committed
Merged revisions 5135-5136 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_91_maint ........ r5136 | mdboom | 2008-05-14 08:59:46 -0400 (Wed, 14 May 2008) | 2 lines Fix font embedding on Windows. ........ svn path=/trunk/matplotlib/; revision=5137
1 parent e809849 commit c7ed151
Copy full SHA for c7ed151

File tree

Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed

‎CHANGELOG

Copy file name to clipboardExpand all lines: CHANGELOG
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2008-05-14 Don't use stat on Windows (fixes font embedding problem) - MGD
2+
13
2008-05-09 Fix /singlequote (') in Postscript backend - MGD
24

35
2008-05-08 Fix kerning in SVG when embedding character outlines - MGD

‎lib/matplotlib/cbook.py

Copy file name to clipboardExpand all lines: lib/matplotlib/cbook.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,11 @@ def __call__(self, path):
413413
result = self._cache.get(path)
414414
if result is None:
415415
realpath = os.path.realpath(path)
416-
stat = os.stat(realpath)
417-
stat_key = (stat.st_ino, stat.st_dev)
416+
if sys.platform == 'win32':
417+
stat_key = realpath
418+
else:
419+
stat = os.stat(realpath)
420+
stat_key = (stat.st_ino, stat.st_dev)
418421
result = realpath, stat_key
419422
self._cache[path] = result
420423
return result

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.