Skip to content

Commit e872552

Browse files
committed
Corret search syntax
1 parent 5814336 commit e872552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpydoc/docscrape_sphinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def _str_references(self):
340340
def _str_examples(self):
341341
examples_str = "\n".join(self['Examples'])
342342

343-
if (self.use_plots and IMPORT_MATPLOTLIB_RE.search(examples_str)
343+
if (self.use_plots and re.search(IMPORT_MATPLOTLIB_RE, examples_str)
344344
and 'plot::' not in examples_str):
345345
out = []
346346
out += self._str_header('Examples')

0 commit comments

Comments
 (0)