def _index_module(self, root, location):
        basename, ext = os.path.splitext(os.path.basename(root))
        if basename == '__init__':
            basename = None
        ext = ext.lower()
        import_path = '.'.join(filter(None, [self.path(), basename]))
        if import_path in BUILTIN_MODULES:
            return
        if ext == '.py':
            self.index_file(basename, root)
        elif ('.dll', '.so') in ext:
            self.index_builtin(import_path, location=location)
dataset/ETHPy150Open alecthomas/importmagic/importmagic/index.py/SymbolIndex._index_module/swapped operands of `in`