Skip to content

Commit 5e537f8

Browse files
author
Tero Mononen
committed
Add support for pyflakes 2.5.0 output
1 parent a6f63cf commit 5e537f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyimport.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ Required for `pyimport-remove-unused'.")
321321
(kill-buffer "*pyimport*")
322322

323323
(let* ((raw-lines (s-split "\n" (s-trim flycheck-output)))
324-
(lines (--map (s-split ":" it) raw-lines))
324+
(lines (--map (s-split-up-to ":" it 2) raw-lines))
325325
(import-lines (--filter (s-ends-with-p "imported but unused" (-last-item it)) lines))
326326
(unused-imports (--map (cons (read (nth 1 it))
327327
(pyimport--extract-unused-var (nth 2 it))) import-lines)))

0 commit comments

Comments
 (0)