Commits

Hong Minhee committed f35e72a Draft

use __builtin__ instead of __builtins__ for PyPy

Comments (0)

Files changed (1)

sphinxcontrib/spelling.py

 """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.