From 7afe18d035c6efacb71e175e2f4cbf140cb313f5 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 11 Oct 2017 12:46:12 -0400 Subject: [PATCH] use the right method to emit warnings Use warn() instead of the non-existant warning() method. Fixes #5 --- sphinxcontrib/spelling/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinxcontrib/spelling/builder.py b/sphinxcontrib/spelling/builder.py index d75d3325..371d2fe1 100644 --- a/sphinxcontrib/spelling/builder.py +++ b/sphinxcontrib/spelling/builder.py @@ -148,5 +148,5 @@ def finish(self): self.info('Spelling checker messages written to %s' % self.output_filename) if self.misspelling_count: - self.warning('Found %d misspelled words' % self.misspelling_count) + self.warn('Found %d misspelled words' % self.misspelling_count) return