(path)
| 275 | # Things related to monkey-patching |
| 276 | # =============================================================================== |
| 277 | def is_python(path): |
| 278 | single_quote, double_quote = _get_str_type_compatible(path, ["'", '"']) |
| 279 | |
| 280 | if path.endswith(single_quote) or path.endswith(double_quote): |
| 281 | path = path[1 : len(path) - 1] |
| 282 | filename = os.path.basename(path).lower() |
| 283 | for name in _get_str_type_compatible(filename, ["python", "jython", "pypy"]): |
| 284 | if filename.find(name) != -1: |
| 285 | return True |
| 286 | |
| 287 | return False |
| 288 | |
| 289 | |
| 290 | class InvalidTypeInArgsException(Exception): |
no test coverage detected