Return whether the given filename is an extension module. This simply checks that the extension is either .so or .pyd.
(filename)
| 58 | #----------------------------------------------------------------------------- |
| 59 | |
| 60 | def is_extension_module(filename): |
| 61 | """Return whether the given filename is an extension module. |
| 62 | |
| 63 | This simply checks that the extension is either .so or .pyd. |
| 64 | """ |
| 65 | return os.path.splitext(filename)[1].lower() in ('.so','.pyd') |
| 66 | |
| 67 | |
| 68 | class DocTestSkip(object): |