From d4af39ff7d6b0984a3a79daf49d522443ea54ef1 Mon Sep 17 00:00:00 2001 From: Ray Lehtiniemi Date: Tue, 14 Mar 2017 17:27:56 -0600 Subject: [PATCH] Fix possible bug in commit 5a7eb99e4 Signed-off-by: Ray Lehtiniemi --- sphinx/transforms/post_transforms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sphinx/transforms/post_transforms.py b/sphinx/transforms/post_transforms.py index 688c997d7..3ec12038d 100644 --- a/sphinx/transforms/post_transforms.py +++ b/sphinx/transforms/post_transforms.py @@ -119,13 +119,13 @@ class ReferencesResolver(SphinxTransform): warn = node.get('refwarn') if self.config.nitpicky: warn = True - if self._nitpick_ignore: + if self.env._nitpick_ignore: dtype = domain and '%s:%s' % (domain.name, typ) or typ - if (dtype, target) in self._nitpick_ignore: + if (dtype, target) in self.env._nitpick_ignore: warn = False # for "std" types also try without domain name if (not domain or domain.name == 'std') and \ - (typ, target) in self._nitpick_ignore: + (typ, target) in self.env._nitpick_ignore: warn = False if not warn: return