8000 Merge pull request #20822 from lpsinger/getattr-raise-attributerror · r03ert0/matplotlib@7d0a166 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d0a166

Browse files
authored
Merge pull request matplotlib#20822 from lpsinger/getattr-raise-attributerror
2 parents 3d5027d + f4d9e9c commit 7d0a166

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/style/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def __getattr__(name):
3333
if name == "STYLE_FILE_PATTERN":
3434
_api.warn_deprecated("3.5", name=name)
3535
return re.compile(r'([\S]+).%s$' % STYLE_EXTENSION)
36+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
3637

3738

3839
BASE_LIBRARY_PATH = os.path.join(mpl.get_data_path(), 'stylelib')

0 commit comments

Comments
 (0)
0