Merge pull request #3556 from rayl/nitpicky-5a7eb99e4

Fix possible bug in commit 5a7eb99e4
This commit is contained in:
Takeshi KOMIYA 2017-03-15 10:39:15 +09:00 committed by GitHub
commit b7cada236f

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