Hong Minhee  committed f35e72a Draft

use __builtin__ instead of __builtins__ for PyPy

  • Participants
  • Parent commits cc5c4ac
  • Branches default

Comments (0)

Files changed (1)

File sphinxcontrib/

 """Spelling checker extension for Sphinx.
+import __builtin__
 import codecs
 import collections
 import imp
     """Ignore names of built-in Python symbols.
     def _skip(self, word):
-        return word in __builtins__
+        return hasattr(__builtin__, word)
 class ImportableModuleFilter(Filter):
     """Ignore names of modules that we could import.