Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62b9e02

Browse files
committed
undo that last change, mdboom had a different solution that I overlooked
svn path=/trunk/matplotlib/; revision=4650
1 parent 0385c3d commit 62b9e02

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

CHANGELOG

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
2007-12-06 fixed a bug in savefig, saving to a nonexistent directory
2-
would result in a crash in some circumstances. Closes bug
3-
1699614 - DSD
4-
51
2007-12-06 fixed a bug in rcsetup, see bug 1845057 - DSD
62

73
===============================================================

lib/matplotlib/figure.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -773,9 +773,6 @@ def savefig(self, *args, **kwargs):
773773
774774
format - one of the file extensions supported by the active backend.
775775
"""
776-
path = os.path.abspath(os.path.split(args[0])[0])
777-
if not os.access(path, os.W_OK):
778-
raise IOError('%s is not a writeable directory'%path)
779776

780777
for key in ('dpi', 'facecolor', 'edgecolor'):
781778
if not kwargs.has_key(key):

0 commit comments

Comments
 (0)