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

Skip to content

Commit b7e0719

Browse files
committed
TST : special case pathexists for None
There seems to be a bit more magic involved in setting up datapath
1 parent 962793b commit b7e0719

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def validate_any(s):
6666

6767
def validate_path_exists(s):
6868
"""If s is a path, return s, else False"""
69+
if s is None:
70+
return None
6971
if os.path.exists(s):
7072
return s
7173
else:

0 commit comments

Comments
 (0)