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 4f55a27

Browse filesBrowse files
committed
matplotlib: Remove catch for OSError.
os.access does not raise this exception.
1 parent 6a4f1e7 commit 4f55a27
Copy full SHA for 4f55a27

File tree

Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,7 @@ def _is_writable_dir(p):
217217
p + '' # test is string like
218218
except TypeError:
219219
return False
220-
try:
221-
return os.access(p, os.W_OK)
222-
except OSError:
223-
return False
220+
return os.access(p, os.W_OK)
224221

225222
class Verbose:
226223
"""

0 commit comments

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