Fix possible bug in commit 5a7eb99e4

Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
This commit is contained in:
Ray Lehtiniemi 2017-03-14 17:27:56 -06:00
parent dc61f68e14
commit d4af39ff7d

View File

@ -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