branch: elpa/flycheck
commit 953712bcea0609b48fa817e6dfabe9345d525181
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Remove dead Python 2.6 error pattern from python-pycompile
The checker runs python3, so the Python 2.6 SyntaxError pattern
(which used a different format: "SyntaxError: ('message', ...")
can never match. Also remove the now-misleading "Python 2.7"
comment — the remaining two patterns are the standard Python 3
formats for SyntaxError and IndentationError.
---
flycheck.el | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/flycheck.el b/flycheck.el
index 3babd43250..a758c57a58 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -10892,17 +10892,12 @@ See URL `https://www.pylint.org/'."
See URL `https://docs.python.org/3.4/library/py_compile.html'."
:command ("python3" "-m" "py_compile" source)
:error-patterns
- ;; Python 2.7
((error line-start " File \"" (file-name) "\", line " line "\n"
(>= 2 (zero-or-more not-newline) "\n")
"SyntaxError: " (message) line-end)
(error line-start "Sorry: IndentationError: "
(message) "(" (file-name) ", line " line ")"
- line-end)
- ;; 2.6
- (error line-start "SyntaxError: ('" (message (one-or-more (not (any "'"))))
- "', ('" (file-name (one-or-more (not (any "'")))) "', "
- line ", " column ", " (one-or-more not-newline) line-end))
+ line-end))
:working-directory flycheck-python-find-project-root
:modes (python-mode python-ts-mode)
:next-checkers ((warning . python-mypy)))