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

Skip to content

Commit 778bb8c

Browse files
committed
Show path to rc file on deprecation warning
1 parent b12ea70 commit 778bb8c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/style/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ def read_style_directory(style_dir):
193193
use_default_template=False)
194194

195195
for w in warns:
196-
w.message = 'While reading %s: %s' % (path, w.message)
197-
warnings.warn(w)
196+
message = 'In %s: %s' % (path, w.message)
197+
warnings.warn(message)
198198

199199
return styles
200200

0 commit comments

Comments
 (0)